Been working on a WordPress project based around the standard Kubrick theme. It renders fine in Firefox and IE7 but in IE6, it's the ultimate dog's breakfast. The HTML does validate correctly.
I've enclosed the CSS and image examples from IE NetRenderer - it's live at http://wordpress.oldworld.co.nz. Any help would be greatly appreciated. :)
/* Begin Typography & Colors */ body { font-size: 62.5%; /* Resets 1em to 10px */ font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; background: #e7e7e7; color: #333; text-align: left; }
h3.comments { padding: 0; margin: 40px auto 20px ; } /* End Headers */
/* Begin Images */ p img { padding: 0; max-width: 100%; }
/* Using 'class=\"alignright\"' on an image will (who would've thought?!) align the image to the right. And using 'class=\"centered', will of course center the image. This is much better than using align=\"center\", being much more futureproof (and valid) */
Ok so I have had a look though you code and notice that you have used positioning once, and that was on the searchbar, although it wasn't actually positioned anywhere lol
You are using a 545px margin to position your sidebar, if you are using padding and margin to position elements in other parts of your site, which I have not had chance to look at - you are going to have issues cross browser, like you have...
I managed to abandon the Kubrick version entirely and went back to a ground-up prototype I had at the beginning. The layout now renders properly in IE, but it's now missing the text in the content div. This occurs in both IE6 and IE7. [attachment=0]ie7.jpg[/attachment] While I'm here, what's the easiest way to align the text in the navigation and content divs so they line up at the top?
#navigation { width:287px; min-height:500px; /* for modern browsers */ height:auto !important; /* for modern browsers */ height:500px; /* for IE5.x and IE6 */ background-color:#4b825a; float:right; padding: 10px 0 10px 10px; }
/* ----- MAIN CONTENT ----- */
#content { width:736px; min-height:500px; /* for modern browsers */ height:auto !important; /* for modern browsers */ height:500px; /* for IE5.x and IE6 */ background-color:#a5c19b; padding: 10px 0 10px 10px; }
I've enclosed the CSS and image examples from IE NetRenderer - it's live at http://wordpress.oldworld.co.nz. Any help would be greatly appreciated. :)
Ok so I have had a look though you code and notice that you have used positioning once, and that was on the searchbar, although it wasn't actually positioned anywhere lol
You are using a 545px margin to position your sidebar, if you are using padding and margin to position elements in other parts of your site, which I have not had chance to look at - you are going to have issues cross browser, like you have...
I wrote this for you!!!
http://alteredaspect.info/the-art-of-css-positioning/
:D
After you have read that you might want to rethink they way you lay everything out :) - I hope it helps!!!
[attachment=0]ie7.jpg[/attachment]
While I'm here, what's the easiest way to align the text in the navigation and content divs so they line up at the top?
Cheers. :)
body {
width:750px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
background: #e7e7e7;
}
/* ----- HEADER ----- */
#header {
width:750px;
height:92px;
background-image: url(header.jpg);
background-repeat: no-repeat;
background-position: left top;
}
#flash {
width:750px;
height:106px;
background-image: url(flash.jpg);
background-repeat: no-repeat;
background-position: left top;
}
#uppernav {
width:750px;
height:35px;
background-image: url(uppernavbg.jpg);
background-position: bottom;
background-repeat: no-repeat;
line-height: 20px;
border: 0 1px 0 1px;
}
#searchbar {
position: relative;
top: 20px;
width: 95%;
text-align:right;
}
#uppernav {
width:750px;
height:42px;
background-color:#354032;
line-height: 20px;
border: 0 1px 0 1px;
}
#uppernav ul {
display:block;
width:750px;
margin:0 auto;
}
#uppernav li {
background:transparent url('http://wordpress.oldworld.co.nz/wp-content/themes/default/ images/navborder.gif') no-repeat scroll right bottom;
color:#FFFFFF;
display:block;
float:left;
padding:5px 10px;
}
#uppernav ul a {
color:#FFFFFF;
display:block;
float:left;
padding:5px 10px;
}
/* FAUX LAYOUT WRAPPER */
#wrapper{
width:750px;
background:url(spacer.gif) repeat-y;
overflow:auto;
}
/* ----- NAVIGATION ----- */
#navigation {
width:287px;
min-height:500px; /* for modern browsers */
height:auto !important; /* for modern browsers */
height:500px; /* for IE5.x and IE6 */
background-color:#4b825a;
float:right;
padding: 10px 0 10px 10px;
}
/* ----- MAIN CONTENT ----- */
#content {
width:736px;
min-height:500px; /* for modern browsers */
height:auto !important; /* for modern browsers */
height:500px; /* for IE5.x and IE6 */
background-color:#a5c19b;
padding: 10px 0 10px 10px;
}
/* ----- FOOTER ----- */
#footer {
width:750px;
height:33px;
background-color:#354032;
color:white;
}