Formatting your CSS Code

Views: 1080

Helpful

Not Helpful

Helpful (0+) / Not Helpful (0-)


Video Comments

Post a Comment

Advertisement

Video Information

jjmunns

jjmunns

Description: Being organized and using good formatting in your CSS files can save you lots of time and frustration during your development process and especially during troubleshooting. The multi-line format makes it easy to browse attributes but makes your file vertically very long. The single-line format keeps your file vertically short which is nice for browsing selectors, but it's harder to browse attributes. You can also choose how you want to group your CSS statements. Do you do it by section, like header, content, footer? Or do you do it by types of attributes like typography and layout? Being organized, hierarchical, and using CSS shorthand will go a long way in making you a better CSS coder.

Uploaded On: 09/03/2010

Tags: Format   organized   CSS   code   Css-Tricks  

Embed (Post this video to your website or blog)