![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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? |
#4
| |||
| |||
|
|
I was running on the impression that max-height was not validated ... |
![]() |
| Thread Tools | |
| Display Modes | |
| |