
Originally Posted by
tcarl
/* Content - Main Style*/
#content {
width: 980px;
overflow: auto;
overflow /*\**/: 0\9; /*IE8 */
padding: 10px 10px 10px 10px;
margin-top:-430px;
*margin-top:-820px; /*IE7 */
z-index:9950;
position:relative;
}
/* IE 8 Code */
.ie8 #content {
height:100%;
overflow:0px;
}
There is no such thing as overflow:0px.
As mentioned by ronpat you should be using overflow:visible to counter overflow:auto.
However your code makes me wonder whether you are doing something wrong as I haven't seen hacks like this for a while.
Code:
#content {
width: 980px;
overflow: auto;
overflow /*\**/: 0\9; /*IE8 */
padding: 10px 10px 10px 10px;
margin-top:-430px;
*margin-top:-820px; /*IE7 */
z-index:9950;
position:relative;
}
I assume you are using the IE hack here:
Code:
overflow /*\**/: 0\9; /*IE8 */
But I guess it should be:
Code:
overflow /*\**/: visible\9; /*IE8 */
However that hack seems to target all versions of IE and not just IE8. You should really use conditional comments as mentioned by ronpat to cater for IE9 and under if necessary and just add !important to the rule to see if there are specificity issues. If you use hacks like that then you may end up giving them to IE10 and above when they may not need it.
I would hazard a guess that you don't actually need those hacks at all as I can't think why IE8 would need different rules for the overflow. The two negative margin-tops are also a cause for worry and certainly need looking at. If IE7 needs double the top margin of other browsers then I would think that you are doing something wrong unless you have very good reason for it and are countering a known bug.
It also seems a little odd that you are dragging something upwards by 480px and would not be something that I recommend unless there is good reason for it. Of course you may well have good reasons for doing the above but generally I can spot when something doesn't quite seem right 
Do you have a link to the page in question so that we can debug further?
Bookmarks