Unit I Applying Advanced CSS Styling. CSS3 can style many aspects that in the past required integration of images New features are not supported by all browsers Age of browser relative to time of feature development Modifications to features not supported in older browsers
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Unit I Applying Advanced CSS Styling
CSS3 can style many aspects that in the past required integration of images
Should try to make Web site usable for users with the least-featured browser.
Progressive enhancement: additional features are used as enhancements only for browsers that can render them
Progressive enhancement enables us to establish a solid baseline of cross-browser support and then enhance the design with advanced CSS features for supportive browsers.
Graceful degradation: ensuring that when site is viewed in browsers that don’t support advanced features, Web page elements should still be displayed in a usable way
Shims or patches:
Scripts written specifically to bridge the gap between browsers with reduced feature sets and more fully featured browsers
Pseudo-element: selectors that enable you to isolate a portion of a larger element for styling
A pseudo-class filters existing elements.a:link means all <a>s that are :link.
A pseudo-element is a new fake element.div::after means non-existing elements after <div>s.
Drop cap: First letter is enlarged and drops below the first line of text
:first-line pseudo-element applied to paragraph
:before and :after pseudo-elements: allow you to insert content into Web page using style rules
:before pseudo-element code and result
Color can be specified in hexadecimal, rgb, and hsl – hue saturation light.
Alpha channel: fourth color value representing the opacity
rgba code and resulting partially transparent element
Creating rounded corners is possible using the CSS3 border-radius property
In past, required overlay of image files simulating the rounded edge
Code for rounded footer corners and resulting element
Text shadow: creates the appearance of a shadow on a surface behind the text
In CSS3, use text-shadow property
Values for the text shadow property and resulting graphic
Box shadow: creates the appearance of a shadow on an entire unit of page content
In CSS3, use box-shadow property to apply a shadow to Web page elements
Code for box-shadow
Modernizr: free script library for enabling alternative code in order to support graceful degradation
Code incorporating Modernizr script