Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 14th, 2008, 09:16 AM
Newbie
 
Join Date: Aug 2008
Posts: 2
Default CSS padding problem IE6

While pretty much a novice at CSS coding, I do understand that it is not wise to define padding in divs as results are not good in IE6. In the page I am working on, I have avoided using left and right padding.

I have a left menu that is 210 pixels wide, and a main section to the right that is 590 pixels wide for a total width of 800 pixels. My page displays perfectly in FireFox. In IE6 it appears that the menu is 3 pixels wider than I have specified, and I cannot for the life of me figure out where these 3 pixels are coming from! If I change the width of the main section from 590 to 587 pixels, the page is then perfect in IE6 but off in FireFox....

If anyone can help shed some light on what the problem is I would be extremely grateful. The page is here:

http://www.brettagold.com/BA/bahometest.html

Thanks!
Reply
  #2  
Old August 14th, 2008, 10:19 AM
Tarantulus's Avatar
Member
 
Join Date: May 2007
Posts: 90
Default

try the following:

[HTML]
html{
padding:0px;
margin:0px;
}
[/HTML]

at the top of your CSS.

also, check this out
http://www.positioniseverything.net/...reepxtest.html
Reply
  #3  
Old August 15th, 2008, 09:10 AM
Newbie
 
Join Date: Aug 2008
Posts: 2
Default

Quote:
Originally Posted by Tarantulus
try the following:

[HTML]
html{
padding:0px;
margin:0px;
}
[/HTML]

at the top of your CSS.

also, check this out
http://www.positioniseverything.net/...reepxtest.html
Already in my CSS. But thanks for the link - it explains where the mystery 3 pixels are coming from and hopefully I can get my head around their suggestion for a fix.....
Reply
Reply

Bookmarks

Thread Tools

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles