URGENT: I hate IE. Help, please

Discussion in 'CSS' started by ccano, Nov 23, 2006.

  1. #1
    Hi, please check my site on Firefox. That's how I'd like it to look.

    http://www.digitalmusictracker.com

    Now look at it on IE 6. The sidebar is shoved down by the main content area. What can I do about this?

    Thanks a lot in advance

    Chris
     
    ccano, Nov 23, 2006 IP
  2. crazybjörn

    crazybjörn Peon

    Messages:
    270
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This is a common problem with IE as it calculates width of elements differently, so basically either the sidebar or the content area is too wide.
     
    crazybjörn, Nov 23, 2006 IP
  3. ccano

    ccano Peon

    Messages:
    211
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Alright but the funny thing is, if I have the sidebar floating right and the content area floating left (opposite of what you see now), I don't have this problem. Weird?
     
    ccano, Nov 23, 2006 IP
  4. adsblog

    adsblog Active Member

    Messages:
    659
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    70
    #4
    decrease sidebar width .
     
    adsblog, Nov 23, 2006 IP
  5. ccano

    ccano Peon

    Messages:
    211
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Look at it now. Decreasing the sidebar width fixes it in IE only. In Firefox the sidebar is now too narrow :confused:
     
    ccano, Nov 23, 2006 IP
  6. thedark

    thedark Well-Known Member

    Messages:
    1,346
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    168
    Digital Goods:
    1
    #6
    this is the webdesigners nightmare, but a good designer should know what are the differences between browsers ( at least firefox and IE ) and thinking to this when designing, and to code in the way that will work for the both.
     
    thedark, Nov 23, 2006 IP
    ccano likes this.
  7. ccano

    ccano Peon

    Messages:
    211
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Alright so now I've got it right in IE but not in Firefox. Any other suggestions?

    Thanks to those of you who've given me your input so far :)
     
    ccano, Nov 23, 2006 IP
  8. ccano

    ccano Peon

    Messages:
    211
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yes, now if only I knew a good designer who could give me a clue as to how to make this work for both browsers :p
     
    ccano, Nov 23, 2006 IP
  9. adsblog

    adsblog Active Member

    Messages:
    659
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    70
    #9
    set width by "%" . if you set width by "px" will have same problems .

    test by "%" and say result here .

    example : width="50px" to width="10%"
     
    adsblog, Nov 23, 2006 IP
    ccano likes this.
  10. ccano

    ccano Peon

    Messages:
    211
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Thanks for the tip but it didn't work out.

    I can't get them side by side with the percentages in Firefox, but even still it causes the same problem in IE.
     
    ccano, Nov 23, 2006 IP
  11. crazybjörn

    crazybjörn Peon

    Messages:
    270
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Use IE conditional to override the width value for IE.
     
    crazybjörn, Nov 23, 2006 IP
  12. ccano

    ccano Peon

    Messages:
    211
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I tried that earlier with no luck. Could you tell me specifically how to do that? Perhaps I did something wrong.

    Thanks :)
     
    ccano, Nov 23, 2006 IP
  13. crazybjörn

    crazybjörn Peon

    Messages:
    270
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #13
    After:
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.digitalmusictracker.com/xmlrpc.php?rsd" />
    HTML:
    Add:
    <!--[if IE]><style type="text/css">#side { width: whatever; } </style><![endif]-->
    HTML:
     
    crazybjörn, Nov 23, 2006 IP
    ccano likes this.
  14. ccano

    ccano Peon

    Messages:
    211
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Thanks so much. That works fine. I green repped everyone who replied to this thread :)

    BTW, does anyone know if this hack worked on IE 7?
     
    ccano, Nov 23, 2006 IP
  15. crazybjörn

    crazybjörn Peon

    Messages:
    270
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #15
    crazybjörn, Nov 23, 2006 IP