This is a discussion on "CSS DIV Heights!" within the Web Page Design section. This forum, and the thread "CSS DIV Heights! are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS DIV Heights!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hi folks,
I switched to CSS layouts from old table layouts one year back. But there is a problem I always face is DIV heights. I mean, if I do a content box is a table cell (even with a bg image) the height will be adjusted according to the contents placed on it (even I can define a minimum height with css) but how can I make a content DIV or a DIV with a tiling bg image, to auto stretch in height? It could be great if I can define a minimum height for the particular DIV (so the content box will maintain a minimum standard height) and if more contents are inserted in future, the DIV should stretch automatically to accommodate all. and the bg tiling also will not be effected. Is there any rules or workarounds for this? Kindly help me in this. Thanking you. |
|
|
|
||||
|
Re: CSS DIV Heights!
i think you should assign an auto value to height and no repeat to background image like this :
height: auto; background-repeat: no-repeat;
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
|||
|
Re: CSS DIV Heights!
Thanks marSoul, but I need the bg to be tiled through the end of content DIV. so I can add a shadow border or something like that. anyways I'll try with height:auto for the height problem.
Regards |
|
||||
|
Re: CSS DIV Heights!
if you want ur background to be repeated, enter :
background-repeat: repeat;
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| css id heights | bean_2k1 | Web Page Design | 3 | Apr 7th, 2007 20:15 |
| Javascript to set equal heights to 3 autoextending columns | joshdub223 | JavaScript Forum | 1 | Apr 22nd, 2006 19:22 |
| layout with dynamic heights | il padrino | Web Page Design | 3 | Nov 23rd, 2005 20:29 |