![]() |
|
#1
|
|||
|
|||
Limited DIV containerI'm working at a site that have the following structure:
A header div on top. Three flowing divs: a menu div on left, a container in midle and another div on right At the bottom of the site another div. My problem is when the content of the container div exceeds. My container div has height:100%. I want that my container to be variable with the content, but I don't know how to do that. If somebody can help me I will be gratefull. Thanks. My css code: CSS Code:
and the html code HTML Code:
Last edited by admin : 01-Dec-2010 at 03:26.
Reason: Please insert your example CSS between [CSS] and [/CSS] tags
|
|||
|
#2
|
|||
|
|||
Re: Limited DIV containerI'm slightly confused but I feel bad that you have 200 some views and no replys..
Do you want height:auto; for the center div? |
|
#3
|
|||
|
|||
Re: Limited DIV containerHi, yes, i'm bit confused too...
A Container Div usually 'contains' the whole of the website code inside the body, e.g.: HTML Code:
And you have no Container Div - BUT, if you mean your Content Div then yes, as the post above mentions, change: min-height: 100%; to height: auto; |
|
#4
|
|||
|
|||
Re: Limited DIV containerI hope I dont get in "trouble" for reviving a old thread, but phil cant accept PM's so I guess I will just try
Hey, Im sure you already found out the answer and sorry it took me super long to reply, this goes to my gmail and I never check that ha. but you were trying to make the div for content auto adjust for content. so when you add more things its gets larger or if you dont have as much its smaller. what you want is overflow:hidden. that will do it. Good luck with all the web design! |
|
#5
|
|||
|
|||
Re: Limited DIV containerthank you for sharing
|
|
#6
|
|||
|
|||
Re: Limited DIV containerfirst of all the container should look like this
HTML Code:
thanks |
Recent GIDBlog
Compress Your Web Site by gidnetwork
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Limited file size.... | lament | Apache Web Server Forum | 2 | 31-May-2004 13:35 |
| [function] Show limited words of a string / text | JdS | PHP Code Library | 0 | 05-Jun-2003 09:25 |
Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The