April 24, 200917 yr I'm having difficulty getting this page to line up in IE, looks fine in firefox etc. Could someone have a look at my code. Sorry for the mess! I know the page doesn't validate but it's just the crappy cutenews i'm using. Cheers here's the code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>The Paul McKenna Band - Official Site</title> <script src="image/js/prototype.js" type="text/javascript"></script> <script src="image/js/scriptaculous.js?load=effects" type="text/javascript"></script> <script src="image/js/lightbox.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="main.css" /> <style type="text/css"> <!-- .style1 {color: #A80000} .style2 {color: #C15600} .style3 {color: #4C8669} .style4 {color: #4B213D} --> </style> </head> <body> <div id="wrap"> <div id="container"> <div id="mail"> <a href="../">Sign up to the mailing list! </a></div> <div id="head"><h1>The Paul McKenna Band - Official Site</h1></div> <div id="nav"> <ul id="navi"> <li><a href="http://www.paulmckennaband.com/">.home.</a></li> <li><a href="http://www.paulmckennaband.com/news.php">.news.</a></li> <li><a href="http://www.paulmckennaband.com/band.php">.band.</a></li> <li><a href="http://www.paulmckennaband.com/tour.php">.tour.</a></li> <li><a href="http://www.paulmckennaband.com/music.php">.music.</a></li> <li><a href="http://www.paulmckennaband.com/video.php">.video.</a></li> <li><a href="http://www.paulmckennaband.com/gallery.php">.gallery.</a></li> <li><a href="http://www.paulmckennaband.com/contact.php">.contact.</a></li> </ul> </div> <div id="col1"> <h2>tour.<span class="style1">dates</span></h2> <?PHP $number = 8; $category = '1'; $template = 'tourdates'; $PHP_SELF = 'tour.php'; include ('news/show_news.php'); ?> <h2>latest.<span class="style4">video</span></h2> <p><object width="220" height="178"><param name="movie" value="http://www.youtube.com/v/zJcth6sQuo8&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/zJcth6sQuo8&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="220" height="178"></embed></object></p> <p><a href="http://www.paulmckennaband.com/video.php">View More</a></p> </div> <div id="col2"> <h2>latest.<span class="style2">headlines</span></h2> <?PHP $number = 10; $category = '2'; $template = 'Headlines'; $PHP_SELF = 'news.php'; include $cutepath.'/show_news.php'?> </div> <div id="col3"> <h2>latest.<span class="style3">photos</span></h2> <div id="thumbs"><?php //Include the Thumbnails, example: //include_once("thumbnails.php"); php_thumbnails(IMAGES_FOLDER_NAME, THUMBNAILS_FOLDER_NAME, LIHGHTBOX OPTION: lb-on/lb-off; include_once("image/thumbnails.php"); php_thumbnails("promo","promo1","lb-on"); ?></div> <p><a href="http://www.paulmckennaband.com/gallery.php">View More</a></p></div> </div> </div> <div id="footer"> <p><a href="http://www.myspace.com/davidmcnee">Website design by David McNee</a></p> <p>©2009 the Paul McKenna Band</p></div> </body> </html> and the css body { margin:0px; padding:0px; background-color:#fff; font-family:Verdana, Arial, Helvetica, sans-serif; color:#666; } h1 { font-size:9px; padding:0; margin:0; } h2, h3, { font-size:1.1em; color:#0099FF; } p { font-size:0.8em; } a:link { color: #333; } a:visited { color: 333; } a:hover { color: #666; } a:active { color: #333; } #wrap { background:url(images/back.jpg) no-repeat center top; margin:0; padding:0; } #container { width:900px; margin:0 auto; padding:0; } #mail { height:40px; font-size:12px; text-align:right; margin:0; padding:5px 20px 0 0; color:#fff; font-weight:bold; } #mail a:link { color: #fff; text-decoration:none; } #mail a:visited { color: #fff; text-decoration:none; } #mail a:hover { color: #ccc; text-decoration:underline; } #mail a:active { text-decoration:none; color: #fff; } #head { width:900px; height:278px; padding:0; margin-top:0; text-indent:-9999px; position:relative; } #navi { padding:0; margin:0; font-size:1em; color:#333; list-style-type:none; text-align:center; } #navi li { display:inline; } #navi li a { padding:0.9em 0.4em 0.2em 0.4em; font-size:1.3em; color:#333; text-decoration:none; } #navi li a:hover { color:#333; font-size:1.3em; } #col1 { width:240px; padding-right:20px; float:left; margin:0; } #col2 { width:420px; margin:0; padding:0; float:left; } #col3 { width:200px; padding-left:20px; float:right; margin:0; } #footer { width:900px; padding-top:30px; background:url(images/foot.jpg) no-repeat center top; margin:0; text-align:center; clear:both; }
April 24, 200917 yr Author Could anyone have a quick look at this for me. I've tidied up the css a but still can't get it to line up in internet explorer. Works fine in safari and firefox etc. here's the code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>The Paul McKenna Band - Official Site</title> <script src="js/prototype.js" type="text/javascript"></script> <script src="js/scriptaculous.js?load=effects" type="text/javascript"></script> <script src="js/lightbox.js" type="text/javascript"></script> <link href="nbs.css" rel="stylesheet" type="text/css" media="screen"> <link rel="stylesheet" type="text/css" href="main.css" /> <style type="text/css"> <!-- .style1 {color: #A80000} .style2 {color: #C15600} .style3 {color: #4C8669} .style4 {color: #4B213D} --> </style> </head> <body> <div id="wrap"> <div id="container"> <div id="mail"> <a href="http://www.paulmckennaband.com/mail.php">Sign up to the mailing list! </a></div> <div id="head"><h1>The Paul McKenna Band - Official Site</h1></div> <div id="nav"> <ul id="navi"> <li><a href="http://www.paulmckennaband.com/">.home.</a></li> <li><a href="http://www.paulmckennaband.com/news.php">.news.</a></li> <li><a href="http://www.paulmckennaband.com/band.php">.band.</a></li> <li><a href="http://www.paulmckennaband.com/tour.php">.tour.</a></li> <li><a href="http://www.paulmckennaband.com/music.php">.music.</a></li> <li><a href="http://www.paulmckennaband.com/video.php">.video.</a></li> <li><a href="http://www.paulmckennaband.com/gallery.php">.gallery.</a></li> <li><a href="http://www.paulmckennaband.com/contact.php">.contact.</a></li> </ul> </div> <div id="col1"> <h2>tour.<span class="style1">dates</span></h2> <?PHP $number = 8; $category = '1'; $template = 'tourdates'; $PHP_SELF = 'tour.php'; include ('news/show_news.php'); ?> <h2>latest.<span class="style4">video</span></h2> <p><object width="220" height="178"><param name="movie" value="http://www.youtube.com/v/zJcth6sQuo8&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/zJcth6sQuo8&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="220" height="178"></embed></object></p> <p><a href="http://www.paulmckennaband.com/video.php">View More</a></p> </div> <div id="col2"> <h2>latest.<span class="style2">headlines</span></h2> <?PHP $number = 6; $category = '2'; $template = 'Headlines'; $PHP_SELF = 'news.php'; include $cutepath.'/show_news.php'?> </div> <div id="col3"> <h2>latest.<span class="style3">photos</span></h2> <?php //Include the Thumbnails, example: //include_once("thumbnails.php"); php_thumbnails(IMAGES_FOLDER_NAME, THUMBNAILS_FOLDER_NAME, LIHGHTBOX OPTION: lb-on/lb-off; include_once("thumbnails.php"); php_thumbnails("foto1","thumb1","lb-on"); ?> <p><a href="http://www.paulmckennaband.com/gallery.php">View More</a></p></div> <div id="footer"> <p><a href="http://www.myspace.com/davidmcnee">Website design by David McNee</a></p> <p>©2009 the Paul McKenna Band</p></div> </div> </div> </body> </html> and the css body { background:url(../images/bfade.png) repeat-x; background-color:#EDF0FF; font-family:Verdana, Arial, Helvetica; font-size: 0.9em; font-style: normal; color:#333; line-height: 1em; text-align:center; margin-top:20px; } h1,h2,h3 { color: #006B97; padding:38px 0 8px 39px; margin:0; font-size:1.6em; line-height:1.6em; font-weight:bold; } p { padding:0 0 15px 45px; font-size:1.1em; line-height:2em; } ul, li {margin-left: 0; padding-left: 0;} .list1 { margin-left:58px; font-size:1.1em; line-height:2em; font-weight:normal; } .list2 { margin-left:35px; font-size:1.1em; line-height:1.6em; font-weight:normal; } #container { width:900px; text-align:center; margin:0 auto; padding:0; } #head { margin: 0; padding: 0; width:900px; height: 166px; background:url(../images/head.png) no-repeat; text-indent: -9999px; } #wrap { min-height:467px; height:auto; background:url(../images/stairs.jpg) bottom right no-repeat; background-color:#fff; clear:both; } /* for Internet Explorer */ /*\*/ * html #wrap { height:467px; } /**/ #wrapshop { height:1000px; height:auto; background:url(../images/stairs.jpg) bottom right no-repeat; background-color:#fff; clear:both; } #wrapcontact { min-height:467px; height:auto; background:url(../images/stairs.jpg) bottom right no-repeat; background-color:#fff; clear:both; } #content { width:580px; min-height:467px; height:auto; text-align:left; background:#fff; margin:0; padding:0; float:left; } /* for Internet Explorer */ /*\*/ * html #content { height:467px; } /**/ #shop { width:900px; height:1000px; height:auto; text-align:left; background:#fff; margin:0; padding:0; float:left; } #contact { width:900px; text-align:left; margin:0; padding:0; float:left; background:url(../images/stairs.jpg) bottom right no-repeat; background-color:#fff; } #contact img { border: 0px; } #contact .errors { color: #ff0000; } #contact .correct { color: black; } .title, .field, .thanks { padding:5px 0 2px 41px } /* for Internet Explorer */ /*\*/ * html #contact { height:467px; } /**/ #promo { width:320px; height:auto; padding:0; float:left; margin:0; } /* for Internet Explorer */ /*\*/ * html #promo { height:467px; } /**/ #footer { width:900px; background:#EDF0FF url(../images/botcur.png) top no-repeat; margin:0; padding:0; } #footer p { margin:0; padding:35px 0 0 0; color:#666; font-size:0.9em; line-height:1.6em; } #footercon { width:900px; background:#EDF0FF url(../images/botcur.png) top no-repeat; clear:both; margin:0 auto; padding:0; } #footercon p { margin:0; padding:35px 0 0 0; color:#666; font-size:0.9em; line-height:1.6em; } #footershop { width:900px; background:#EDF0FF url(../images/botcur1.png) top no-repeat; margin:0; padding:0; } #footershop p { margin:0; padding:35px 0 0 0; color:#666; font-size:0.9em; line-height:1.6em; }
April 25, 200917 yr Your css looks fine to me unless I've missed something. Try replacing your images with a bit of text just to test whether it's something to do with them.
Create an account or sign in to comment