Css not working in IE :(

Discussion in 'CSS' started by ps3ubo, Aug 9, 2009.

  1. #1
    ps3ubo, Aug 9, 2009 IP
  2. ps3ubo

    ps3ubo Peon

    Messages:
    204
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I have tested this in Firefox & PS3 Browser they work fine, but IE is diffrent :(
     
    ps3ubo, Aug 9, 2009 IP
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    You will never get IE to attempt to perform like other more modern browsers without a proper doctype. Add this to your first line:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
     
    drhowarddrfine, Aug 9, 2009 IP
  4. ps3ubo

    ps3ubo Peon

    Messages:
    204
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This has not made any difference.
     
    ps3ubo, Aug 9, 2009 IP
  5. normalfx

    normalfx Peon

    Messages:
    111
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    as drhowarddrfine said you need to give a proper doctype to your html first. And then it'll be more easier to find bugs on your page.
     
    normalfx, Aug 9, 2009 IP
  6. myst_dg

    myst_dg Active Member

    Messages:
    224
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #6
    You don't even have necessary tags in your page, no <html>, no <head>, no <body>, that's as crazy as you go to street naked.

    Go w3schools.com to find some information about basic page structure.
     
    myst_dg, Aug 9, 2009 IP
  7. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #7
    The HTML, HEAD, and BODY tags are optional. It is a poor practice, and may lead to browser error to leave them out, but it is completely valid.

    @ the OP: It would be a good idea to include those tags.

    In general, IE and Firefox render very similarly. There are obvious differences, but IE looks better at one thing, Firefox at another. Please specify the differences you're interested in. Also, please edit your css for human readability. Your formatting is terrible. You may view the stylesheets on my site (see sig) for one commonly accepted format. (Important: The indents are spaces, not tabs.)

    cheers,

    gary
     
    kk5st, Aug 9, 2009 IP