Problems with the height of/stretching a <div>

Discussion in 'CSS' started by fischer, May 15, 2007.

  1. #1
    Hello! I have created this page www.cumdealer.com/pindsvin and everything works excellent (stretching <div>'s etc.), except the <div>'s colored red and blue on the site (#indhold_venstre og #indhold_hoejre). I need them to stretch 100% according to the height of #indhold_midt. I simply can not seem to figure this out - and it's really nagging me.

    Thank you in advance,
    fischer.
     
    fischer, May 15, 2007 IP
  2. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #2
    Have you tried <div style="height:100%;"> ??
     
    YIAM, May 15, 2007 IP
  3. fischer

    fischer Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes... the style of the #indhold_venstre and #indhold_hoejre is as follows:

    #indhold_venstre {
    background-color: red;
    min-height:100%;
    width:400px;
    float: left;
    }

    #indhold_hoejre {
    background-color: blue;
    min-height:100%;
    width:400px;
    float: right;
    }
     
    fischer, May 15, 2007 IP