Feeds

Help needed: MS-IE 6 on XP only - CSS problem (Grmpfff, Arghh, Hell ...)

PerformancingAds
Submitted by Markus Merz on March 11, 2008 - 12:51pm in

Can some kind soul tell me why the sidebar in XP MS-IE 6 shows up below the content?

I have checked it yesterday on an XP PC and a 1280 screen and that's why the "(Grmpfff, Arghh, Hell ...)" part was added to the title.

I have no XP MS-IE 6.
On XP with MS-IE 7 all is fine.
I don't have to mention Firefox, don't I?

On W2K with MS-IE 6 all is fine.

The basic markup

OK, I have a basic page design and now I have added a sidebar.

<body>
<div id="pagewrap">
<div id="wrap">
Main content incl. old footer.
Styled with CSS
</div id="wrap">
<div id="sidebar">
</div id="sidebar">
</div id="pagewrap>
</body>

Here is the site
Here is the CSS

The basic CSS for the layout

/*
===== 3: layout =====
*/

body {
  width:100%;
  margin: 10px 0 0 20px;
  padding: 0;
  text-align: center;
  background: #fff;
  color: #000;
  font-family: 'Trebuchet MS', Verdana, sans-serif;
}

#pagewrap {
  width: 985px;
}

#wrap {
  float:left;
  width: 760px;
  margin: 0 auto;
  text-align: left;
}

#sidebar  {
  float:right;
  width: 190px;
  padding: 10px;
  margin: 0 0 0 3px;
  border:1px dotted #271E3D;
  background: #ffe;
  text-align: left;
  font-size: .8em;
}

The #pagewrap was only added because I thought it would solve the MS-IE problems by creating another CSS 'box'. For me it looks perfectly fine to only use the body element to have a fixed width.

My W2K MS-IE 6 works fine even down to a 'body' or #pagewrap width of 983px.

Margin counting is: 20 + 760 + 3 + 190 = 973 (cute Google feature :) A fixed width of 985px should be fine.


Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <h2> <h3> <h4> <img> <div> <a> <em> <strong> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <span> <table> <td> <tr> <caption> <th> <hr> <pre> <br> <p> <object> <param> <embed> <strike>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
7 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.