Jump to content

has some moderm browser deprecated the properties, margin-top, margin-left.....


co.ador

Recommended Posts

I have noticed that moderm browser doesn't grab the effect of

margin-top

margin-right

margin-left

margin-bottom

 

is like these properties doesn't for some moderm browsers. If you notice below I use the properties in the Id=#right because former IE version seem like not being able to grasp the margin:0 0 0 0; way of applying values to margins... Well now the style of applying values to margin set up below work allright for IE5 IE6 IE7 and FF but for IE8, Chrome, Safari it won't work.

 

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

I have tried to do a fixed by * html #right{} sore of thing just like you do guys, But I was not succesful on applying it. I have a question what's the purpose of doing the below code and Why it's done? 

[code]* html #right{
margin:10.0em 0 0 104em;
}

 

Thank you in advance

margins don't work with absolute positioning. That's the whole point of absolute positioning - it positions things absolutely, regardless of everything else. If you want your margins to work, you will have to remove the absolute positioning.

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.