help w/ a IE problem.

Discussion in 'CSS' started by dec, Jul 12, 2007.

  1. #1
    Site looks fine in Firefox and Safari
    Everything is left aligned in IE. Can anyone help with this?
    thanks for your help
    I've attached the css code

    http://decandstephbuckley.com/popcasting/
     

    Attached Files:

    dec, Jul 12, 2007 IP
  2. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #2
    You *MUST* use a DOCTYPE, or else browsers go into quirks mode and they will attempt to render it in their own way (not conforming to standards, etc).

    I recommend XHTML Transitional for you.

    http://205.209.146.77/foobar.html

    ^^^ Your site with a DTD.

    P.S, why are you using application/xhtml+xml?
     
    soulscratch, Jul 12, 2007 IP
  3. dec

    dec Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    DOCTYPE...ahhh. thank you

    I'd copied the META top from the orig site (not designed by me)
    what do you reccomend putting in?
     
    dec, Jul 12, 2007 IP
  4. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #4
    Well, application/xhtml+xml is REAL XHTML, which fails if there's even one error, that's why I would not send application/xhtml+xml, but it looks like your server is sending the *real* header as text/html, would only be fitting to match it

    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />

    ^ Is pretty much the standard now. Not that you really need to change it, but it would just confuse people such as myself when viewing your source code.
     
    soulscratch, Jul 12, 2007 IP
  5. kimberlybarryd

    kimberlybarryd Peon

    Messages:
    45
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    <!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>Untitled Document</title>
    </head>

    <body>
    </body>
    </html>
     
    kimberlybarryd, Jul 12, 2007 IP
  6. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #6
    Err, you can get rid of the <base /> element I added, that was just so all the images and crap could show up on the test page I made.
     
    soulscratch, Jul 12, 2007 IP
  7. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #7
    I would change the default charset in DW to utf-8.
     
    soulscratch, Jul 12, 2007 IP
  8. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Actually the character encoding must match the one being sent by the server. It doesn't matter if you use UTF-8 or ISO-8859-1, if the server is sending Windows-1252, that's what your page will be sent as. The only ways to fix that are to match the character encoding with what the server's sending, change the server's HTTP headers via the commandl line/control panel, or write a server-side script to reset it to what you want.
     
    Dan Schulz, Jul 13, 2007 IP
  9. kimberlybarryd

    kimberlybarryd Peon

    Messages:
    45
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    * {
    margin:0px;
    padding:0px;
    }
    body {
    text-align: center;
    }
    #wrap {
    width: 700px;
    margin-right: auto;
    margin-left: auto;
    text-align: left;

    }
     
    kimberlybarryd, Jul 16, 2007 IP