Forum Moderators: not2easy

Message Too Old, No Replies

Combined font attributes to avoid bloat

         

createErrorMsg

11:34 pm on Jun 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I was just looking around in the CSS library and I came across a thread started by tedster and papabaer about getting rid of CSS bloat.

It was full of a lot of great stuff.

One thing papabaer said was to combine all those font attributes (font-size, font-style, font-variant, font-family, ad infinitum) into one font: attribute in the CSS.

So here's a question: is there a rule about what order to put those attributes in? I know for margins the rule is margin: top bottom left right (at least I THINK I know it is). Is there a similar order required for FONT:?

Reflection

11:55 pm on Jun 8, 2004 (gmt 0)

10+ Year Member



[w3.org...]

And BTW its top, right, bottom, left :) Clockwise.

createErrorMsg

1:42 am on Jun 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks again, Reflection.

Clockwise. Huh. Whod've thunk it would make sense, right?

vkaryl

2:15 am on Jun 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Heh. Bet it's the other way 'round if your cultural bias is middle-eastern....