background preloader

Coding

Facebook Twitter

Decimal and Binary Conversion Tool. Modernizr: the feature detection library for HTML5/CSS3. Codrops. "Mobifying" Your HTML5 Site. Introduction Developing for the mobile web is a hot topic these days. This year, for the first time ever, smart phones out sold PCs. More and more users are using a mobile device to traverse the web, which means it's becoming critical for developers to optimize their sites for the mobile browsers. The "mobile" battlefield is still uncharted waters for a large number of developers. Many folks have existing legacy sites that neglect mobile users altogether.

Instead, the site was designed primarily for desktop browsing and degrades poorly in mobile browsers. This site (html5rocks.com) is no exception. Creating a mobile-friendly html5rocks.com As an exercise I thought it would be interesting to take html5rocks (an existing HTML5 site) and augment it with a mobile-friendly version. This article examines how we created a mobile version of html5rocks optimized for Android and iOS devices. HTML4 and CSS2 have supported media-dependent style sheets for some time. <head> ... Vertical layout. Media Queries. Abstract HTML4 and CSS2 currently support media-dependent style sheets tailored for different media types. For example, a document may use sans-serif fonts when displayed on a screen and serif fonts when printed. ‘screen’ and ‘print’ are two media types that have been defined. Media queries extend the functionality of media types by allowing more precise labeling of style sheets.

A media query consists of a media type and zero or more expressions that check for the conditions of particular media features. Status of This Document This section describes the status of this document at the time of its publication. A W3C Recommendation is a mature document that has been widely reviewed and has been shown to be implementable. This document has been reviewed by W3C Members, by software developers, and by other W3C groups and interested parties, and is endorsed by the Director as a W3C Recommendation. Please see the Working Group's implementation report and the Media Queries Test Suite. 1. 3. 5. A 301 Redirect Guide for the Clueless! After all of these tutorials, you might be really confused as to how this actually looks in a final .htaccess file. Here’s an example of how your .htaccess would/should look for a few different scenarios: Example .htaccess: Old Site/Domain to New Site/Domain (Easy but Sloppy) Options +FollowSymlinks RewriteEngine on RewriteRule (.*) [R=301,L] Above: This is the .htaccess file for the old site.

It’s the lazy man’s way of doing a old site to new site redirect, and it’s not really recommended, unless your old site is really tiny, gets no visitors and has no real keyword rankings in search engines. We’re just piling up the entire old site and dumping it on to the home page of the new website, called “www.new-site.com,” in this example. Example .htaccess: Old Site/Domain to New Site/Domain (Strategic) Above: This is the .htaccess file for the old site. Getting Started with Responsive Web Design - A Dummies Guide. This guide answers common questions around Responsive Web Design, a technique for building mobile and tablet websites that is also recommended by Google. Google has officially recommended Responsive Web Design as their preferred method for building mobile websites.

If you have a website or a blog, it is time that you seriously consider switching to a responsive design instead of maintaining a separate mobile-friendly (or tablet-friendly) website. If you are new to the concept of Responsive Web Design (RWD), here’s a quick guide that should answer most of the common questions that you may have around this technique. Let’s get started. Q1 – Why should I switch my website to Responsive Design? A1 – Your website looks great of the desktop screen but the same may not be true when your site is viewed on a smartphone, a tablet or an e-reader (like the Kindle). Q2 – What are the other advantages of switching to RWD? Q3 – What should I know to get started with Responsive Design?

A4 – That’s easy. Developer Network. HTML5, CSS3 & JavaScript playground for web developers and designers. Edit this Fiddle. Udacity.

Wordpress

Code School. jQuery. Image Map Tool - On-line Image Map Creator - HTML & CSS. 50 Useful Coding Techniques (CSS Layouts, Visual Effects and Forms) - Smashing Magazine. Advertisement Although CSS is generally considered a simple and straightforward language, sometimes it requires creativity, skill and a bit of experimentation. The good news is that designers and developers worldwide often face similar problems and choose to share their insights and workarounds with the wider community. This is where we come in. We are always looking to collect such articles for our posts so that we can deliver the most useful and relevant content to our readers. In this post, we present an overview of useful CSS/jQuery coding tips, tricks and techniques for visual effects, layouts and web form design to help you find solutions to the problems you are dealing with or will have to deal with in future.

You may want to look at similar CSS-related posts that we published last months: CSS Layouts: Techniques And Workarounds Facebook Style Footer Admin Panel4Learn how to re-create the Facebook footer admin panel with CSS and jQuery. Adaptable View: How Do They Do It? Sniptastic! JavaScript 101 | appendTo Developer Learning Center. Learn to code.