Help!! why does my CSS + HTML web pages display differently in IE & FireFox?
-
My web page displays how I want it in Firefox but for some reason displays differently in IE!!! I have validated the CSS and HTML code with w3school and It says it is all good, but still displyas differently in IE... Here Is my HTML code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd… <html> <link rel="stylesheet" type="text/css" href="lbf.css"> <title>Love British Film</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <body> <div id="main_container">fegerfg <div id="header"> <div class="logo">Love British Film.com </div> </div> <div id="nav_bar"> <ul class="nav_list"> <li class="odd"><a href="index.html">Home</a></li> <li class="even"><a href="index.html">Reviews</a></li> <li class="odd"><a href="index.html">Forums</a></li> <li class="even"><a href="index.html">Videos</a></li> <li class="odd"><a href="index.html" >Downloads</a></li> <li class="even"><a href="index.html">News</a></li> <li class="odd"><a href="index.html" >Fun bits</a></li> <li class="even"><a href="index.html">Contact us</a></li> </ul> </div> <div class="main_text"> <div class="header">HEADER FOR MAIN CONTENT</div> Main content!! </div> <div id="film_of_day">Film of day </div> <div id="poll_of_week">asdnasdljasasdasfdasfa… </div> </body> </html> And my CSS code: body { background:url(bg.jpg) no-repeat #FFF center top; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:11px; margin:0px auto auto auto; } #main_container{ width:1200px; height:auto; margin:auto; padding:0px; } #header{ position:relative; width:1200px; height:170px; background:url(header.jpg) no-repeat center; background-position:0px 0px; margin:auto; padding:5px; } .logo{ width:auto; height:auto; font-size:20px; position:relative; top:80%; text-align:right; } #nav_bar{ width:1200px; height:50px; } ul.nav_list{ list-style-type:none; float:left; display:block; width:1200px; margin:0px; padding:0px; } ul.nav_list li.odd a{ display:block;width:150px; text-align:center; float:left;text-decoration:none; background:url(images/home.png) no-repeat left; background-color:rgb(147,216,255);heig… line-height:40px; color:rgb(168,100,63); } ul.nav_list li.even a{ display:block;width:150px; text-align:center; float:left;text-decoration:none; background:url(images/home.png) no-repeat left; color:rgb(168,100,63); height:40px; line-height:40px;background-color:rgb(26… } a.odd:link, a.odd:visited { display:block;width:133px; text-align:center; float:left;text-decoration:none; background:url(images/home.png) no-repeat left; } ul.nav_list li.even a:hover{background-color:#A29;} ul.nav_list li.odd a:hover{background-color:#F99;} a.even:link, a.even:visited { display:block;width:133px; text-align:center; float:left;height:40px;text-decoration:n… background:url(images/home.png) no-repeat left; color:#676d77;} a.even:hover{ color:#FFFFFF; } .header{ width:500px; text-align:center; margin-bottom:50px; } .main_text{ display:inline-block; float:left; width:600px; height:600px; background-color:rgb(147,216,255); } #film_of_day{ float:right; width:340px; height:250px; background-color:rgb(147,216,255); } #poll_of_week{ margin-top:50px; float:right; width:280px; height:250px; outline:solid; padding:1px; } Any help??? thanks, will pick best answer
-
Answer:
Because IE is not a web browser that conforms to standards used by everyone else. You can either explain to your visitors that they should abandon IE and use a proper browser or create a separate style sheet just for IE users.
steakyfa... at Yahoo! Answers Visit the source
Other answers
Well that shouldn't have validated at all. You're using a frameset doctype. You need the html 4.0 strict doctype <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Plus there's no <head></head>? Unclosed <div> And you say you validated it, or are you trying to BS us?
Nightfire
First off, IE is a nightmare for web designers. Second, I would make your doctype strict, and see if that helps. http://www.w3schools.com/tags/tag_doctype.asp
Jason S
Related Q & A:
- How to write code to go through web pages automatically and get the required information?Best solution by Stack Overflow
- Why do people slice up images created in Adobe Photoshop CS3 or Illustrator for web pages?Best solution by Yahoo! Answers
- How to view sss web pages?Best solution by Yahoo! Answers
- How do you block any web pages from the computer?Best solution by wikihow.com
- How to make the first page of a PDF display by itself and the succeeding pages display two-up?Best solution by Super User
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.