If I used a value like:
Why is it that in IE the margin-left shows up as 30%? Am I missing something?Code:body { margin: 0px; padding: 0px; } #ad { margin-left: 15%; padding: 0px; width: 50px; height: 50px; }
| SitePoint Sponsor |


If I used a value like:
Why is it that in IE the margin-left shows up as 30%? Am I missing something?Code:body { margin: 0px; padding: 0px; } #ad { margin-left: 15%; padding: 0px; width: 50px; height: 50px; }
Sing in a band called Psychostick, Alfredo Afro.


*sigh*
I kindof found a solution:
Works a little better, but the margin-left still isn't even with other browsers. Bleh.Code:* html #ad {margin-left: -15%;} body { margin: 0px; padding: 0px; } #ad { margin-left: 15%; padding: 0px; width: 50px; height: 50px; }
Sing in a band called Psychostick, Alfredo Afro.


It's called the double margin bug. You can find a solution on the CSS stickies at the top of this forum.
Save the Internet - Use Opera | May my mother rest in peace: 1943-2009
Dan Schulz - Design Team Advisor | Follow me on Twitter
SitePoint References: HTML CSS JavaScript | Become A Guru
WordPress SEO Checklist | What WordPress Plugins Do You Use?
Web Standards Curriculum | Image Free Equal Height Columns
Bookmarks