-
Book Overview & Buying
-
Table Of Contents
HTML5 for Flash Developers
By :
An important feature we saw within the CreateJS bundle was the ability to easily check whether the client's web browser supports the intended HTML5 functionality to be used on your web page. However, only CreateJS has the ability to check for functionality compatibility for the features it uses within the libraries. If you are in need of digging deeper into checking whether your users have the appropriate functionality in their web browsers, the Modernizr project is definitely worth a look. Modernizr allows you to easily check for every feature within the HTML5 feature set with only a couple of lines of code and an external JavaScript file that is only a couple of kilobytes.
To start, you will need to head over to http://modernizr.com and download the latest version of the library. As with many JavaScript libraries, you will have the option of downloading the production or the development version of the code in order to conserve file size and bandwidth:

For ease of...
Change the font size
Change margin width
Change background colour