This handy chap has simply showed the light of CSS overrides, nice and easy really. Slap important over what inline styles you want overridden! <div style="background: red;"> The inline styles for this div should make it red. </div> div[style] { background: yellow !important; } src: http://css-tricks.com/2708-override-inline-styles-with-css/
Flash Scaling with Firefox
If you're making a flash clip take up the entire browser window, as can be necessary on occasion, in most browsers throwing in height="100%" works fine. Not so with firefox. Firefox interprets the doctype strictly, which disables the internal elements from setting the height of the window (100% of something in a div, will just... Continue Reading →
Centering DIVs with CSS in IE
This will align your divs in the center for Internet Explorer if the old standard margin-left:auto etc. doesn't do the do. body { text-align:center; margin:0px; } #center_box { padding-top:200px; width:700px; margin:0 auto; text-align:left; }
Adding stylesheets to an html page
This is something I always forget the syntax for since I rarely do it, doing more editing already present stylesheets than adding new ones. <link rel="stylesheet" type="text/css" href="style.css">
Keeping scrollbars visible even when not required
A wee peice of CSS can keep the scrollbar on screen but disabled if not required if you wish to (rather than have pages jump if they suddenly scroll later on) html { overflow-y: scroll; }