WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > Browser Compatibility > ie 6 margin problems

Reply
  Thread Tools Display Modes
Old 2nd May 10, 03:52 PM   #1
theflyingburito
WLC Member
 
Join Date: May 2010
Posts: 1
Default ie 6 margin problems

Hey there, I am working on a website currently that looks fine on ie7 and 8 aswell as firefox. However in ie6 the margins for the "mainContent" div that is floating right is shoved up right next to my left floating "sideNavigation" div. The set "left-margin" for side navigation is displaying correctly, just the margins on "mainContent" are not adhering.

I am attaching the url http://www.realisticwebsolutions.com/mytestsuccess/

also here is the css for the two elements
Code:
#sideNavigation {
	margin: 10px 0 0 15px;
	width: 140px;
	height: 370px;
	float: left;
	border: thin solid #9999CC;
}

#mainContent {
	float: right;
	height: 100%;
	width: 548px;
	border: thin solid #9999cc;
	margin-right: 30px;
	padding: 15px;
	margin-top: 10px;
}
Thanks in advance for any input!

Last edited by meesa; 3rd May 10 at 04:13 PM. Reason: Added [code] Tags
theflyingburito is offline   Reply With Quote
Old 4th May 10, 10:27 PM   #2
androsynth
WLC Member
 
Join Date: May 2010
Location: United States
Posts: 17
Default Re: ie 6 margin problems

This could be a side effect of the much hated double-float margin bug in IE6:

http://positioniseverything.net/expl...ed-margin.html

IE6 doubles the margins that are applied to the same side as the float.
androsynth is offline   Reply With Quote
Old 5th May 10, 01:49 AM   #3
Rayzur
WLC Lover
 
Rayzur's Avatar
 
Join Date: Feb 2008
Location: Texas
Posts: 1,331
Default Re: ie 6 margin problems

Yes, your code has margins in the same direction as the floats.
Add display:inline; to both of those selectors for IE6.
__________________
Ray H.

To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
Rayzur is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:36 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.