co.ador Posted November 10, 2009 Share Posted November 10, 2009 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 Quote Link to comment Share on other sites More sharing options...
haku Posted November 11, 2009 Share Posted November 11, 2009 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.