Problem with IE layout

Discussion in 'CSS' started by sojic, Mar 21, 2008.

  1. #1
    sojic, Mar 21, 2008 IP
  2. Marc Fraser

    Marc Fraser Peon

    Messages:
    283
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What version of IE are you using?

    It looks fine in IE 7.
     
    Marc Fraser, Mar 21, 2008 IP
  3. sojic

    sojic Active Member

    Messages:
    133
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #3
    IE 6

    Take a look the attachment
     

    Attached Files:

    sojic, Mar 21, 2008 IP
  4. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Looks like 6 thinks there isn't enough room for it. Is it a float? IE loves to drop floats. Any excuse and it will do it.

    Take a read: http://www.sitepoint.com/forums/showpost.php?p=1374925&postcount=15

    If there aren't any floats involves, ignore me.

    *Edit, I see what you're doing. I sometimes get this in IE too when doing this. Wish I could remember what it was... lessee, Ie might still be counting widths here... look at the total with you have with left and right together. Is the total larger than 400px? I think yes, because you've positioned everything exactly to 400px, but then gave them borders. Now you've got 404px. Try making that margin bigger on the content. Try, like, margin-right: 420px or so. If it works in IE6, and you need to have the more precise margin, then go to margin-right: 404px and see how that works.
     
    Stomme poes, Mar 21, 2008 IP
  5. Suzy

    Suzy Peon

    Messages:
    27
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    #right img {display: block;}
    Code (markup):
    either that or be sure to add a <br> after the image

    your inline image and the first word next to it are displaying inline and stretching the column width in IE6 and below (old/wrong stretching box behaviour)
     
    Suzy, Mar 22, 2008 IP
  6. sojic

    sojic Active Member

    Messages:
    133
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #6
    @Stomme: the problem is not 404 px width. I add borders to "see" containers. The problem exists even when width is 400 or less then 400 px.

    Probably the link is useful. I will try it tomorrow.
     
    sojic, Mar 24, 2008 IP