andrew-turner.com
Submitted by: Andrew Turner

Quick Tip: CSS Formatting

I thought there’s no better way to start the week than sharing a little tip and teaching some of you something. There’s a couple different methods to formatting CSS (Cascading Style Sheets), though there are two main ways which i see across many different sites.

As for what we all use - that solely depends on how you like to format your code, how you read your code and how usable and practical you feel that it is if you need to edit it later on down the track. I personally use a mix of the two with elements that only have a few attributes i use the first method and elements with a handful or more attributes i’ll use the second method.

direct link