Better HN
topnewbestaskshowjobs
Log inSign up

halles

1 karma · joined Mar 28, 2011 (15y ago) · 2 submissions

Submissions

comment 15y ago · link · parent

I use 4 stylesheets:

- reset (duh) - layout (structural stuff) - typography (general typegraphic styles) - styles (stuff gets prettier than the already are).

As for the grouping o selectors, i try not to reuse much code so cascading will not mess stuff up, i'd rather make big css than fragile css. I also try to group code on a per section basis… just remember i do have a typography stylesheet which makes most of the stuff readable and pretty before the glitz rolls in.

comment 15y ago · link · parent

I think most of you who answered this reply missed the point where CSS is not HTML… ID's should be used when they suit better. The same with classes. You end up constructing semantical html which a) easier to maintain and b) won't mix the design with the content on code-time.