Connecting Tech Pros Worldwide Help | Site Map

Div 1px out in IE7

Familiar Sight
 
Join Date: Sep 2008
Posts: 252
#1: Aug 26 '09
It works fine in FF 3 and in IE8 but in IE7 the site_wrapper div is over to the left by 1px and its noticable due to the colors of the site. Can anyone help?
Page:
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>test</title>
  4. <link type="text/css" rel="stylesheet" href="conf/styles/default.css">
  5.  
  6. </head>
  7. <body>
  8. <div id="external_container">
  9.     <div id="internal_container">
  10.         <div id="site_wrapper">
  11.             &nbsp;
  12.         </div>
  13.     </div>
  14. </div>
  15. </body>
  16. </html>
CSS:
Expand|Select|Wrap|Line Numbers
  1. body {
  2.     margin: 0px auto;
  3.     padding: 0px;
  4.     font-size: 11px;
  5.     font-family: Verdana;
  6.     background: #333333 url('../../media/images/layout/background.gif') repeat-y center top;
  7. }
  8. #external_container {
  9.     width: 100%;
  10.     margin: 0px;
  11.     padding: 0px;
  12.     text-align: center;
  13. }
  14. #internal_container {
  15.     width: 918px;
  16.     margin: auto;
  17. }
  18. #site_wrapper {
  19.     float: left;
  20.     width: 918px;
  21.     margin: auto;
  22.     background-color: #CCCCCC;
  23.     clear: left;
  24.     display: inline;
  25. }
Familiar Sight
 
Join Date: Sep 2008
Posts: 252
#2: Aug 26 '09

re: Div 1px out in IE7


Added a screen shot of the problem, the red circle at the left you'll see the overlapping pixel and the red circle on the right you'll see the space.

Familiar Sight
 
Join Date: Sep 2008
Posts: 252
#3: Aug 27 '09

re: Div 1px out in IE7


Anyone have any ideas, i can't find anything on the net about this issue? I've tried everything to resolve it but can't seem to and its only IE 7 it occurs on?!
Reply