View Single Post
Old 11-30-2009, 04:24 PM  
HighEnergy
So Fucking Banned
 
Join Date: Apr 2007
Posts: 806
Quote:
Originally Posted by JD View Post
nifty trick and yeah i agree on the 1998 thing about HR's

I do the same thing with a clear class like

Code:
.clear {clear:both;}
and use it on page with
Code:
<div class="clear" style="height:xxpx;"></div>
different strokes for different folks :D
All's well that ends well .... but ....
1) for predictable cross-browser results call every variable at the beginning of the style sheet.

ie:
font-family
font-size
font-style
line-height
margin
padding
p margin
p padding
div margin
div padding
i margin
i padding
em margin
em padding
etc
etc
etc
Just obey cascading for the best results.

I keep all base (global) styling in a 'base' file to be read 1st.
Then unique page/site styling in a unique CSS file to be read 2nd.



...
HighEnergy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote