Reply
CSS - Minimum height
Old 05-21-2004, 01:25 PM CSS - Minimum height
Junior Talker

Posts: 1
hello,

I'm not a complete noob in CSS,
but i got a problem with the sizing of a <div>

the thing has to be sized with a minimum height.
and when the content of the <div> needs more than
550 px of height it has to stretch.

i tried it several times, with classes and ID,
but it still doesn't work,
i putted it in code like this:

#bg{
position: relative;
background: url(../images/bg.png);
top: 0px;
left: 0px;
width: 675px;
min-height: 550px;
}

can anyone tell me how i should solve this problem?
thanks a lot

greetz jelle

p.s. i know that it might work under netscape/mozilla, but this is a website that has to work under internet explorer.

Last edited by ya_mamma : 05-21-2004 at 01:27 PM.
ya_mamma is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-21-2004, 04:48 PM
TheX's Avatar
Skilled Talker

Posts: 99
Location: NYC
Yours:
Code:
#bg{
position: relative;
background: url(../images/bg.png);
top: 0px;
left: 0px;
width: 675px;
min-height: 550px;
}
Don't use the css 2 min-height rule, its not well supported yet.

try:
Code:
#bg{
position: relative;
background: url(../images/bg.png);
top: 0px;
left: 0px;
width: 675px;
height: 550px;
}
Make sure you put a white space &nbsp; in the <div> or another child <div> with something inside.
TheX is offline
Reply With Quote
View Public Profile Visit TheX's homepage!
 
Reply     « Reply to CSS - Minimum height
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11254 seconds with 12 queries