Jump to content

problems displaying one CSS block in IE5 IE6 and IE8


co.ador

Recommended Posts

Hi guys

 

#right {
display:inline;
width:auto;
position:absolute;
margin:9.0em 0 0 98em;
font-family:"Times New Roman", Times, serif;
font-weight:500;
font-size:11px;}

 

 

The visitors counter at the top right at http://www.nyhungry.com

is not displaying inside the width of the body in IE5 IE6 IE8 and safari. It is working in FF and IE7 Need some help..

 

Display inline is not working for those browser..

 

<div id="right">
1 visitor online 
</div>

There is a couple of things more

 

Now there is a div in IE5 the Wrapper which is to close to the hearder it seems like the margin-top is not enough but then if I put some margin-top it will affect the other browser...

 

#wrapper {
    min-height: 100%;
    margin:-4em 0 0em  0;
padding: 0 0 0 0;
display:block;
display:inline;
float:left;
width:auto;
}
* html #wrapper {
    height:100%;


}
body:before {
    content:"";
    height:100%;
    float:left;
    width:0;
    margin-top:-32767px;

}
#wrapper:after {
    clear:both;
    display:block;
    height:1%;
    content:" ";

}

 

The Wrapper is the big orange gradient Search Form "for a restaurant" at the left of the body. In Internet Explorer 5 seems not to get the top margin down..

 

<div id="wrapper">
</div>

to make margins cross browser i always start my css with

* { margin: 0px; }

then give margin to the elements that need it. im not sure how far into this you are so before implementing, consider weather or not you have time to go back and give margin to what needs it.

. im not sure how far into this you are so before implementing, consider weather or not you have time to go back and give margin to what needs it.

What do you mean how far into this you are so....

 

 

thank you dorky..

 

 

I have applied it as below:

 

#videowrapper {
height:255px;
width:200px;
margin: 10em 0 0 5em;
padding:0;
float:left;

}
* #videowrapper {margin-left:0;}

 

is the above code correctly scripted?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.