Styling with CSS3
- Future Focused
-
CSS3 is bringing more power to Front End Developers than aver and making strong communication between designers and FEDs even more important. CSS3 is allowing for such rapid iteration that it's important to take advantage of but allows for such a variety in experiences across browsers that it's important that designers and FEDs both understand its impact.
- Use Case
-
Say a designer mocks up an element that is a flexible height and width with rounded corners, a gradient, drop shadows, inner shadows, borders containing multicolumn text. In the days of slicing and dicing images multiple requests like this can blow a small budget. Using CSS3 we can create effects like these with a few lines of code much faster than we ever could before.
View Lesson - Browsers
-
- Have a discussion with the designer to see what parts of the layout are critical to the brand and which can take advantage of CSS3.
- Check to see if you need "Vendor Prefixes" (-o-, -webkit-, -moz-, -ms-) for each css3 property.
- Have a fallback if needed. If IE7 doesn't support your background gradient make sure the page doesn't display white text on a white background.
- Weigh the pros and cons of a polyfill