How Do I make this IE Compliant?

Discussion in 'CSS' started by praisehim, Jul 29, 2008.

  1. #1
    Hi all,

    I have a website http://www.eldancall.com/team. It works perfectly in Mozilla. But in everything else its look wack. I need some form of html that will allow me to have a bar of color at the top of the page, and a bar of color at the top of the page, with the login box centered. Aparentently, IE does not recognise the table width="100%" attribute, now does it recognize some CSS classes that I am using.

    If anyone could help me with this, I'll be so grateful

    Thanks
     
    praisehim, Jul 29, 2008 IP
  2. LeetPCUser

    LeetPCUser Peon

    Messages:
    711
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I would recommend putting this into CSS. I could help you create something really quick that would look good in IE7, IE6 and FireFox.
     
    LeetPCUser, Jul 29, 2008 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    kk5st, Jul 30, 2008 IP
  4. astersmitem

    astersmitem Peon

    Messages:
    35
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    LeetPCUser and Gary are both right. The easiest way to achieve maximum cross-browser compatibility is to utilize CSS properly and make sure you are compliant with markup standards. I would recommend converting your tabled setup into a setup using <div>s with ids and classes. You don't have any DTD, and you need a proper DTD to invoke standards mode, and your code needs to validate to whatever standard you choose (I like XHTML Strict). Instead of declaring size attributes in the tags on the page, assign them ids or classes and declare those as styles in CSS. This makes it easier to find and edit these attributes, and ensures that any modern browser will be able to render your intended look. If you learn better use of CSS it will make your web development experience so much easier.
     
    astersmitem, Jul 31, 2008 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #5
    Yup, no doctype == fail. To that we can add invalid markup (you misspelled head, you don't close body or html), dated presentational markup, wrapping stuff that aren't paragraphs in paragraph tags, wasting a table on the footer for no fathomable reason, position absolute on what appears to be a flow element, etc, etc.

    I'd also take you to task for using a table for layout - except assuming those boxes are dynamic height getting them to center top to bottom without hacks or tons of code the table is the only real solution.

    Part of what is likely biting you is the inconsistant fieldset and legend behavior - which is why I null the behavior of both in my forms and then wrap fieldsets in a DIV and the content of a legend in a span. It's a hair more markup, but at least gives you tags you can apply style to predictably while keeping the form tags "needed" for accessability.
     
    deathshadow, Aug 1, 2008 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #6
    deathshadow, Aug 1, 2008 IP