Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-12-2008, 03:32 AM   PM User | #1
coffeeping
New Coder

 
Join Date: Apr 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
coffeeping is an unknown quantity at this point
float:left + margin left

hi, i hv set a margin left for my css layout but why after add the float:left, in IE 6 the margin will extra 2 more pixels?anyone know the solutions?




my coding as below
#leftcontent {
margin-left:5px;
margin-right:5px;
float:left;
width: 557px;
height:358px;
background-color:#333333;


}
coffeeping is offline   Reply With Quote
Old 05-12-2008, 05:33 AM   PM User | #2
FWDrew
Regular Coder

 
FWDrew's Avatar
 
Join Date: Apr 2008
Location: Missouri
Posts: 380
Thanks: 38
Thanked 45 Times in 43 Posts
FWDrew is on a distinguished road
Hi,

I cant be of too much help,as I dont have IE 6, but I happened to have read a thread earlier I believe will help you.

http://codingforums.com/showthread.php?t=139462

Towards the bottom, you will see candygirl speak of a specific IE6 bug that adds 3 px to a floated contents element, followed by a list of links and hacks

Regards,

Drew

Last edited by FWDrew; 05-12-2008 at 05:34 AM.. Reason: spelling
FWDrew is offline   Reply With Quote
Old 05-12-2008, 06:04 AM   PM User | #3
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
You are suffering from the IE double margin bug.
Code:
#leftcontent {
margin-left:5px;
margin-right:5px;
float:left;
width: 557px;
height:358px;
background-color:#333333;
display:inline;
}
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 +1. The time now is 10:39 AM.


Advertisement
Log in to turn off these ads.