css compatible ie and firefiox !!!

Discussion in 'HTML & Website Design' started by omaryo, Aug 3, 2008.

  1. #1
    hey i want to know what is the best way to make a css compatible with ie and firefox ; use ''em'' instead ''px'' ......
    Thanks
     
    omaryo, Aug 3, 2008 IP
  2. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #2
    code properly?

    Honestly, if you code CSS properly then you have full control over everything (although you still might need to do extra for ie6, i.e. a ie hack or whatever people call them).

    I've never had problems getting code to work the way it should (although sometimes it does take a while to figure out why it's acting weird in a browser or something, but I always get there in the end).
     
    twistedspikes, Aug 3, 2008 IP
    Zerosleep likes this.
  3. mds

    mds Active Member

    Messages:
    256
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #3
    I agree. The answer is code properly and use only necessary codes needed in your design.
     
    mds, Aug 3, 2008 IP
    twistedspikes likes this.
  4. BANAGO

    BANAGO Active Member

    Messages:
    456
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #4
    As to agree with the others above, now that I have mastered CSS and XHTML, I rarely need any hack for CSS. Coding valid code make you happier. Good Luck!
     
    BANAGO, Aug 4, 2008 IP
  5. 007c

    007c Peon

    Messages:
    611
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    007c, Aug 4, 2008 IP
  6. steelfrog

    steelfrog Peon

    Messages:
    537
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Using EM vs PX values doesn't really help with Firefox/Internet Explorer compatibility issues; it's simply a different want to handle resizing. It's better to use EM values than PX since they scale properly for people with lower eyesight who need to resize text.

    As far as the compatibility issue is concerned, your best bet is to start using a Reset stylesheet (I like Eric Meyer's) and then tackling the remaining issues one by one as you encounter them. I'd suggest you read up on the difference in Box Models to get you started, since it's one of the biggest problems you'll encounter but unfortunately, there is no single way to achieve perfect compliance easily. It's all in the way you code. You'll pick it up over time and learn to code with the differences in mind.
     
    steelfrog, Aug 4, 2008 IP