CSS Issue with IE and Firefox

Discussion in 'HTML & Website Design' started by mahendras, May 8, 2009.

  1. #1
    We are coming across some problems related to CSS and Div, especially related to the placement of div and spacing.
    Firefox displays the div at the place we want while IE doesn't take such in consideration. Don't know why.
    My Question was "Is there any standard practice which displays everything same in all browsers?"
     
    mahendras, May 8, 2009 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    As long as you write your markup according to the W3C documentation, you will have little problems with any modern browser displaying the same. The exception is IE which is not a modern browser and the worst on the planet. So always test your markup in a modern browser, then check in IE to see if/when it screws things up. But the bugs and quirks in IE are known, as are the hacks to fix it.
     
    drhowarddrfine, May 8, 2009 IP
  3. websolutions_777

    websolutions_777 Banned

    Messages:
    249
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi there

    Div is mostly used to avoid cross browser problems.You can try it by making separate css class for different browser.

    Regards
    WS
     
    websolutions_777, May 8, 2009 IP
  4. kashifmughal

    kashifmughal Member

    Messages:
    74
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #4
    i think this is very simple problem there which you facing, you should control your site margins and paddings between <div> classes, because i face these kind of problems on daily bases, because i'm working on products (websites).
     
    kashifmughal, May 9, 2009 IP
  5. kashifmughal

    kashifmughal Member

    Messages:
    74
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #5
    i think this is very simple problem there which you facing, you should control your site margins and paddings between <div> classes, because i face these kind of problems on daily bases, because i'm working on products (websites).
     
    kashifmughal, May 9, 2009 IP