dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] IE all mest up.

  1. #1
    Join Date
    Dec 2012
    Posts
    2

    resolved [RESOLVED] IE all mest up.

    hello
    I'am a student in the Netherlands. We have to design a website for school wich turns out to be fun. but i have a problem: every webbrowser displays my site correctly except Internet Explorer. I have tryed to figure out why but i can't understand it. I hope that someone can make some sense of it.

    <html>
    <head><title>Linux rules</title>
    <style>
    body
    {background-color:khaki;}
    table
    {width:70%; margin-left: auto;
    margin-right: auto;}
    td.menu
    {
    height:50 px;
    background-colorrange;
    font-size:25 px;
    word-spacing:2em;"
    }
    td.menu a:link {color:white;}
    td.menu a:visited {color:white;}
    td.menu a:hover {color:yellow;}
    td.menu img {width:50px; height:50px; vertical-align:middle;}

    td.text
    {
    height:600px;
    background-color:white;
    text-align:center;
    font-family:Verdana;
    font-size:15px;
    color:brown;
    }

    td.text img {width:675px; height:400px;}

    </style>
    </head>
    <body>
    <table>
    <tr><td class="menu">
    <img src="http://www.freshtechweb.com/wp-content/uploads/2012/09/Cons-of-Linux.jpg" >
    <a href="index.htm" >Home</a> <a href="ubuntu.htm" >Ubuntu</a> <a href="Linux Mint.htm">Mint</a> <a href="" ></a></td></tr>
    <tr><td class="text">
    removed text
    <img src="data/ubuntuscreen.jpg" alt="ubuntu">
    </td></tr></table>
    </body>
    </html>

  2. #2
    Join Date
    Mar 2011
    Posts
    1,156
    If that's the complete content of the page, then the problem is that you don't have a <!DOCTYPE> statement at the start to set browsers to "Standards Compliance Mode".

    Search on "doctype switch" and you'll find some good advice.

  3. #3
    Join Date
    Dec 2012
    Posts
    2
    thanks!
    no isn't compelte content, but the solution worked perfectly.
    added <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> .
    And it is centerd now

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles