0

I have this id that should be default 15px from the bottom (which works).
But if I have content larger, the content box should grow in height, how can I specify this?

#content {
    position:absolute;
    top: 85px;
    left:15px;
    right:130px;
    bottom:15px;
    background-color:#00CC00;
    font-family: Arial, Helvetica, Tahoma, sans-serif;
}

Edited by Kruptein: n/a

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Kruptein
0

I have this id that should be default 15px from the bottom (which works).
But if I have content larger, the content box should grow in height, how can I specify this?

#content {
    position:absolute;
    top: 85px;
    left:15px;
    right:130px;
    bottom:15px;
    background-color:#00CC00;
    font-family: Arial, Helvetica, Tahoma, sans-serif;
}

Hi,
You could try height:auto; then use margin/padding to get the desired bottom px.

Also if you require a minimum set height then you could use min-height:100px; or whatever you desire.
Hope it helps....

0
#content { position:absolute;  top:auto; left:15px; right:130px;  bottom:15px; background-color:#00CC00; font-family: Arial, Helvetica, Tahoma, sans-serif; }
0

emhkm1 solved the problem,
almostbob your way didn't do what I wanted...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.