div inside a div !!!

Discussion in 'CSS' started by visualkreations, Dec 29, 2007.

  1. #1
    Hi,

    Can someone please help me with this problem?


    I have a div called bigdiv and inside that div i have a div called smalldiv.

    now when i put in some content inside smalldiv bigdiv does not stretch in firefox , however it stretches fine in ie. does this make sense?




    Thanks
     
    visualkreations, Dec 29, 2007 IP
  2. monosulpa

    monosulpa Guest

    Messages:
    37
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    yeah is somenthing usual even with the "widht:auto" the only way is stretching it manually
     
    monosulpa, Dec 29, 2007 IP
  3. himambo

    himambo Peon

    Messages:
    100
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    add this style to your bigdiv

    overflow : hidden;
    :)
     
    himambo, Dec 30, 2007 IP
  4. manishk

    manishk Peon

    Messages:
    63
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If it is working in IE & not in FF then there is something wrong with your code. :)

    IE treats width as min-width and therefore it stretches to accommodate the extra content.
     
    manishk, Dec 30, 2007 IP