Welcome To Snipplr
Everyone's Recent CSS Snippets Tagged ie6
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
The code below will change the background-color of divs depending on what browser the user is viewing the web page under. Since * cascades down to IE7 and below, we use _ after that declaration so that IE6 (and below) has a different background color...
1
910
posted 14 years ago by alozuldo
Any table with an attribute of align="left" also applies float:left in older versions of IE, this fixes it.
0
858
posted 14 years ago by vagrantradio
For instances where you have an empty div that is less than about 10-15px in height. IE assumes it should contain something and allots room for text.
I first found this on the webdeveloper.com forums. The fix here is ultimately the "font-size:0" d...
0
748
posted 14 years ago by CDIDevs
In IE6 and IE7 when wrapping an anchor to the next line, the first anchor with the class="anchorClass" will not display the background image nor have the clickable padded area.
In your IE6 & IE7 bugfixes CSS adding the property/value display:inlin...
0
1022
posted 15 years ago by Rogier
Accomplish min-width in IE6 using CSS and conditional comments, no need for expressions.
4
945
posted 15 years ago by Ahrjay
Thanks to perishablepress.com for this. Below is an example for ie6 max-height.
From their site:
"This method has been verified in IE6 and should also work in IE5. Simply change the values to suit your needs (code commented with explanatory notes...
1
923
posted 15 years ago by charmcitycoder
Since there are still many people using IE6, we have to cater for them :-(
Anyway, this CSS statement shows a declaration for a PNG Logo. Most browsers will understand the first 5 lines. Sadly, IE6 will not be able to use the transparent PNG from l...
1
821
posted 15 years ago by AshMan
In IE6 (+7?) the fieldset width doesn't automatically resize to fit the width of the parent container.
1
757
posted 15 years ago by hotdiggity
For instances where you have an empty div that is less than about 10-15px in height. IE assumes it should contain something and allots room for text.
I first found this on the webdeveloper.com forums.
The kicker here for me was the "font-size:0"...
2
937
posted 15 years ago by charmcitycoder
To remove that ugly added padding from submit buttons try this
width:auto !important; seems to work for IE7
2
1122
posted 15 years ago by localhorst