Site looks different in IE6 and FireFox

Discussion in 'CSS' started by abduls16, Aug 22, 2010.

  1. #1
    Why does this site look different in IE6 and FireFox.

    Please help me.....
    www.presidentiallife.ca/demo1

    The right div looks the way its supposed to in Firefox, but in IE6, its on the second line. Could this be a CSS issue?

    Thank you,
    Abdul R Shaikh
     
    abduls16, Aug 22, 2010 IP
  2. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I *think* it's because your sidebar is 160px wide but the image in it is 180px wide. It's expanding to contain the image in IE6 and becoming too wide to float so it's dropping down to where there's space. It looks like you've misunderstood how padding affects the width of a div, as a rule unless you know the ins and outs it's better to use margins than padding as IE6 is less likely to freak out.

    Is there a reason that each of your navigation links is in a seperate div, by the way? That was very confusing :p
     
    kiramanic, Aug 22, 2010 IP
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    Any problems involving any version of IE is always an IE issue and never a CSS issue. You are seeing the results of how a modern browser renders your markup versus an inept one.
     
    drhowarddrfine, Aug 22, 2010 IP
  4. Rimona

    Rimona Active Member

    Messages:
    123
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    63
  5. EvanP

    EvanP Banned

    Messages:
    1,731
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Probably because IE6 is crap and is never updated.
     
    EvanP, Aug 22, 2010 IP
  6. abduls16

    abduls16 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hello all...Thank you for replying...

    I took kiramanic and Rimona's suggestions....
    Kiramanic: I've made it all into one div......
    Rimona: I've added the box model hack into my css

    Still no luck :(
    please take a look at
    http://www.presidentiallife.ca/Demo2/

    Thank you
     
    abduls16, Aug 22, 2010 IP
  7. Rimona

    Rimona Active Member

    Messages:
    123
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    63
    #7
    Abdul,

    You did not really apply the hack as it should be done.

    I am a little pressed for time now but try this:

    Change:

    #wrapper #body1 {
    width: 160px;
    float: right;
    padding: 20px;
    height: 100%;
    border-right-color: #990000;
    border-left-color: #990000;
    background-color: #FFFFFF;
    }

    to:
    #wrapper #body1 {
    width: 160px;
    _width: 140px;
    float: right;
    padding: 20px;
    _padding: 10px;
    height: 100%;
    border-right-color: #990000;
    border-left-color: #990000;
    background-color: #FFFFFF;
    }

    See what effect that has
     
    Rimona, Aug 22, 2010 IP
  8. abduls16

    abduls16 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks.....I tried it, but no luck :(...infact it looks really different in mozilla as well.....now
     
    abduls16, Aug 22, 2010 IP
  9. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #9
    Is this code or rather junk? There are "n" numbers of use of &nbsp; to get some space between navigation items. With the use of list items <ul><li> and styling list items with css you could achive your navigation easily.

    Just do a Google search "pure css horizontal menu" will throw you thousand of tutorials/tips. If you are insterested, I have a simple CSS menu tutorial at my blog http://inspirationsunlimited.co.in/web-design/pure-css-horizontal-menu/, this also includes the source file; if you wat you can take a look. A little tweak to the css you can have menu as you like. And anytime you have issues you can contact me or post your issues at DP forum.

    And please try moving from table based design to div based design.
     
    Last edited: Aug 22, 2010
    radiant_luv, Aug 22, 2010 IP
  10. Lucas Rodrigues

    Lucas Rodrigues Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    google internet explorer css-hacks to have specific instructions for ie
     
    Lucas Rodrigues, Aug 23, 2010 IP
  11. abduls16

    abduls16 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Hello All,

    Thank you for the replies...

    My skills with HTML and CSS have been brushed off, the last time I did this was about 5 years ago.

    radiant_luv: Thank you for the helpful links.......I was able to make the coding look a bit better......

    Please take a look @ www.presidentiallife.ca/Demo2

    Thank you,
    Abdul R Shaikh
     
    abduls16, Aug 23, 2010 IP