Evil Glint Posted December 3, 2010 Share Posted December 3, 2010 I thought I had my site looking okay (though it needs a lot of design work done yet), but at a friend's house, it doesn't look right. It turns out the page displays as I want it to in Mac SeaMonkey, Mac Safari, and Windows Google Chrome, but not Windows Internet Explorer. In particular, the banner alignment is a little off on one page, and completely distorted on another. Any ideas how to fix this? <html> <head> <title> Caleb's Web Page</title> <link rel="stylesheet" type="text/css" href="files/css/denim/css.css"> </head> <body> <!-- Banner Bar --> <div class="bannerbar"> <img class="banner" src="files/css/denim/banner.png" alt="" /> </div> <!-- /Banner Bar --><table class="webbody"> <tr><td colspan="2" class="title"> <h1>Welcome to my web page!</h1> </td></tr> <tr><td class="menu"> <h2>Menu</h2> <!-- side menu --> » <a href="../"><b>Back to main site</b></a><br/> » <a href="?page=index">Index</a><br/> <!-- » <a href="?page=gamequotes">Video Game Quotes</a><br/> --> » <a href="?page=chestmaw">Chestmaw</a><br/> » <a href="phpinfo.php">PHP Info</a><br/> <!-- /side menu --> </td> <td class="content"> <p>Welcome to the site! It doesn't look like much now, but I'm working on it.</p> <p>If you use the link on the left, you can get back to the main hub site. Ben doesn't have anything up yet, but Mckenzie has several photos available.</p> <p>Alternitively, you could click the PHP info link, but that page was just an experiment, and you wouldn't understand what is says. I don't even understand it.</p> <p>I have a picture of a Chestmaw for you, Mother (<a href="?page=chestmaw">link</a>).</p> <p>I hope to have a forum up soon, but things are not looking good.</p></td></tr></table>© Caleb Palmer (last updated December 2, 2010) </body> </html> Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted December 3, 2010 Share Posted December 3, 2010 That markup is incomplete. No DOCTYPE declaration, encoding isn't declared, etc. W3C markup validator Quote Link to comment Share on other sites More sharing options...
Evil Glint Posted December 6, 2010 Author Share Posted December 6, 2010 Yeah, I haven't gotten to that part yet, as I'm still fiddling with the banner. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted December 6, 2010 Share Posted December 6, 2010 How can you expect it to look right when it's not complete? Quote Link to comment Share on other sites More sharing options...
Evil Glint Posted December 6, 2010 Author Share Posted December 6, 2010 I'm not trying to get the whole page to look right, just the banner. But here is the validated html (although it's still complaining about the semicolon in "©", I don't think I can do anything about it), with the same issue: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> <title> Caleb's Web Page</title> <link rel="stylesheet" type="text/css" href="files/css/Denim/css.css"> </head> <body> <!-- banner bar --> <div class="bannerbar"> <img src="denimbannertemp.png" alt=""> </div> <!-- banner bar --> <table class="webbody"> <tr><td colspan="2" class="title"> <h1>Welcome to my web page!</h1> </td></tr> <tr><td class="menu"> <h2>Menu</h2> <!-- side menu --> » <a href="?page=index">Index</a><br> <!-- /side menu --> </td> <td class="content"> <!-- page content --> <p>Welcome to the site! It doesn't look like much now, but I'm working on it.</p> <!-- /page content --> </td></tr></table> © Caleb Palmer (last updated December 3, 2010</body> </html> Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted December 6, 2010 Share Posted December 6, 2010 Don't put it directly in the body. Enclose it in an element like a paragraph. <p>© Caleb Palmer (last updated December 3, 2010)</p> Quote Link to comment Share on other sites More sharing options...
Evil Glint Posted December 6, 2010 Author Share Posted December 6, 2010 The <p> tags change the spacing, so i doesn't look good. I did add a <div> tag now though, which both completely validates the document, and leaves the look untouched. However, this doesn't fix the banner. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted December 6, 2010 Share Posted December 6, 2010 You'll probably need to post the CSS also for anyone to really be able to figure this out. Quote Link to comment Share on other sites More sharing options...
Evil Glint Posted December 7, 2010 Author Share Posted December 7, 2010 body { background-color: #0000FF; font-family: Arial, Verdana, sans-serif; font-size: 18px; color: #FFFFFF; background-image:url('Denim.png'); background-attachment:fixed; } .bannerbar { margin-top: 20px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-color: #000055; background-image: url('DenimBannerStrip.png'); height:100px; border:1px dashed #006; } .banner { float:left; } .webbody { padding-right: 20px; padding-left: 20px; padding-bottom: 20px; padding-top: 20px; width: 95%; background-image: url('DenimLight.png'); border:1px dashed #006; margin: auto; background-attachment:fixed; } .title { margin-bottom: 20px; margin-top: 20px; padding-right: 20px; padding-left: 20px; padding-bottom: 20px; padding-top: 20px; background-image: url('DenimDark.png'); background-attachment:fixed; } .menu { padding-right: 20px; padding-left: 20px; padding-bottom: 20px; padding-top: 20px; background-image: url('DenimDark.png'); width: 25%; background-attachment:fixed; vertical-align: top; } .menu A:link {text-decoration: none; color: white;} .menu A:visited {text-decoration: none; color: white;} .menu A:active {text-decoration: none; color: white;} .menu A:hover {text-decoration: overline underline; color: white;} .content { padding-right: 20px; padding-left: 20px; padding-bottom: 20px; padding-top: 20px; background-image: url('DenimDark.png'); width: 75%; background-attachment:fixed; vertical-align: top; } The images can be found at http://manintan.tk/files/css/Denim/ , and the page at http://manintan.tk/ . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.