This is a discussion on "Expanding Divs.. Need Help :(" within the Web Page Design section. This forum, and the thread "Expanding Divs.. Need Help :( are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Expanding Divs.. Need Help :(
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Expanding Divs.. Need Help :(
Right.. so ive got a div.. and inside that is the main content div.. i want to know how to have the outside div expand when the inside one does.. but there is a problem.. Both divs have a set height..
Is there a way to do this? I've already searched google but i can't find anything. Any help would be appreciated.. Last edited by FXDesigns; Jan 26th, 2008 at 18:10. Reason: Spelling |
|
|
|
|||
|
Re: Expanding Divs.. Need Help :(
http://fxdesigns.bs-webhost.co.uk/javiersworld
See the black div behind the white one? Well i want it to expand when the white one does but i want them to still be the same size apart at the bottom etc.. and also they need to be a set height at the start to make them look right. Any chance of it? |
|
|||
|
Re: Expanding Divs.. Need Help :(
im not completely sure what your trying to do, why would the white box expand in the first place?
|
|
|||
|
Re: Expanding Divs.. Need Help :(
Take the height off of both divs.
To the code for the black div add this overflow: hidden; That will allow the black div to expand as the white one does. |
|
|||
|
Re: Expanding Divs.. Need Help :(
But is it possible to give the divs a certain height and they only expand when needed?
|
|
||||
|
Re: Expanding Divs.. Need Help :(
Would min-height be appropriate?
HINT: Since IE6 does not understand min-height, but incorrectly interprets height as min-height, use the holly hack
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Last edited by Aso; Jan 28th, 2008 at 17:25. |
|
|||
|
Re: Expanding Divs.. Need Help :(
Quote:
If you would like to have a look at my code feel free.. http://fxdesigns.bs-webhost.co.uk/javiersworld & http://fxdesigns.bs-webhost.co.uk/ja...tyle/style.css |
|
||||
|
Re: Expanding Divs.. Need Help :(
Which div are you trying to style?
I don't see where you've used min-height anywhere!? You need to set the min-height property, then as above, target IE6 with the height property.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: Expanding Divs.. Need Help :(
no im trying to do it on my computer.. its not working..
|
|
||||
|
Re: Expanding Divs.. Need Help :(
post it or host it please (your code that is)
__________________
WelshStew Lead Administrator tierney rides tboard - uk site | xtreme wales - extreme clothing If you think I've helped, click the "Thanks" webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| expanding menu | lisafelst12 | Flash & Multimedia Forum | 9 | Apr 28th, 2008 20:16 |
| Div not expanding down | Lchad | Web Page Design | 5 | Feb 13th, 2007 19:37 |
| DIV expanding too far | Echilon | Web Page Design | 2 | Dec 31st, 2006 15:39 |
| expanding menu | brunette | JavaScript Forum | 3 | Dec 7th, 2006 22:56 |