Hi,
I'm trying to make a div to hold the main contain of the pages of my website
I've coded it in an external style sheet so
#contenido
{
position:absolute;
width:777px;
height:446px;
left:112px; (need a better centering value)
top:146px;
z-index:1
}
As it needs a variable height to allow for the different page legths, I've tried these but dint work
1. Not to define heigth at all to let contents define it: didnt work, got a height of about 1 px and contents below outside div
2. Added overflow: I dont want scrolling bars
3. Gave height 100%, width 777px, doesnt work in all browsers versions
How can I define the height of a flexible div?
Thank you
I'm trying to make a div to hold the main contain of the pages of my website
I've coded it in an external style sheet so
#contenido
{
position:absolute;
width:777px;
height:446px;
left:112px; (need a better centering value)
top:146px;
z-index:1
}
As it needs a variable height to allow for the different page legths, I've tried these but dint work
1. Not to define heigth at all to let contents define it: didnt work, got a height of about 1 px and contents below outside div
2. Added overflow: I dont want scrolling bars
3. Gave height 100%, width 777px, doesnt work in all browsers versions
How can I define the height of a flexible div?
Thank you