HighDots Forums  

Height

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Height in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shapper
 
Posts: n/a

Default Height - 02-19-2009 , 01:11 PM






Hello,

I am setting the height of a div as 120px.
Is there anyway to set the height of the div as 120px if its content
is higher them 120px but if the content is under 120px high then the
div will be as high as the content?

Thanks,
Miguel

Reply With Quote
  #2  
Old   
David Stone
 
Posts: n/a

Default Re: Height - 02-19-2009 , 01:36 PM






In article
<f2933c38-6c1c-4719-8daa-bef9132dfc00 (AT) 41g2000yqf (DOT) googlegroups.com>,
shapper <mdmoura (AT) gmail (DOT) com> wrote:

Quote:
Hello,

I am setting the height of a div as 120px.
Is there anyway to set the height of the div as 120px if its content
is higher them 120px but if the content is under 120px high then the
div will be as high as the content?

Thanks,
Miguel
Set max-height: 120px instead?


Reply With Quote
  #3  
Old   
shapper
 
Posts: n/a

Default Re: Height - 02-20-2009 , 10:04 AM



On Feb 19, 6:36*pm, David Stone <no.em... (AT) domain (DOT) invalid> wrote:
Quote:
In article
f2933c38-6c1c-4719-8daa-bef9132df... (AT) 41g2000yqf (DOT) googlegroups.com>,

*shapper <mdmo... (AT) gmail (DOT) com> wrote:
Hello,

I am setting the height of a div as 120px.
Is there anyway to set the height of the div as 120px if its content
is higher them 120px but if the content is under 120px high then the
div will be as high as the content?

Thanks,
Miguel

Set max-height: 120px instead?
I was running on the impression that max-height was not validated ...
I don't know why.
This is the reason why I didn't even try it ...

Thank You,
Miguel


Reply With Quote
  #4  
Old   
dorayme
 
Posts: n/a

Default Re: Height - 02-20-2009 , 06:35 PM



In article
<f60cda28-989b-430b-9b0f-8c10a4a18664 (AT) a12g2000yqm (DOT) googlegroups.com>,
shapper <mdmoura (AT) gmail (DOT) com> wrote:

Quote:
I was running on the impression that max-height was not validated ...
It is mainly just that min and max width and height is not recognised by
IE6 and so if you need it you have to make pesky workarounds for that
pesky browser. IE7 is ok on this score.

--
dorayme


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.