Expanding Divs.. Need Help :(

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 26th, 2008, 18:09
Junior Member
Join Date: Jan 2008
Location: Northern Ireland
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 27th, 2008, 19:12
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Expanding Divs.. Need Help :(

You need to post the css for the two div's, at a minimum, for your question to make sense to me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 27th, 2008, 19:59
Junior Member
Join Date: Jan 2008
Location: Northern Ireland
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 27th, 2008, 21:40
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 266
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Expanding Divs.. Need Help :(

im not completely sure what your trying to do, why would the white box expand in the first place?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 28th, 2008, 00:44
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 28th, 2008, 14:34
Junior Member
Join Date: Jan 2008
Location: Northern Ireland
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Expanding Divs.. Need Help :(

But is it possible to give the divs a certain height and they only expand when needed?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jan 28th, 2008, 17:19
Aso's Avatar
Aso Aso is offline
Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,341
Blog Entries: 2
Thanks: 11
Thanked 49 Times in 46 Posts
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
Code: Select all
* html #selector {/*style*/}
and apply the equivalent height.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)

Last edited by Aso; Jan 28th, 2008 at 17:25.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jan 28th, 2008, 18:31
Junior Member
Join Date: Jan 2008
Location: Northern Ireland
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Expanding Divs.. Need Help :(

Quote:
Originally Posted by aso186 View Post
Would min-height be appropriate?

HINT: Since IE6 does not understand min-height, but incorrectly interprets height as min-height, use the holly hack
Code: Select all
* html #selector {/*style*/}
and apply the equivalent height.
Doesnt work ..

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jan 29th, 2008, 14:56
Aso's Avatar
Aso Aso is offline
Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,341
Blog Entries: 2
Thanks: 11
Thanked 49 Times in 46 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Jan 30th, 2008, 15:02
Junior Member
Join Date: Jan 2008
Location: Northern Ireland
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Expanding Divs.. Need Help :(

Quote:
Originally Posted by aso186 View Post
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.
no im trying to do it on my computer.. its not working..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Jan 30th, 2008, 15:06
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,709
Blog Entries: 14
Thanks: 3
Thanked 33 Times in 31 Posts
Re: Expanding Divs.. Need Help :(

post it or host it please (your code that is)
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
tierney rides tboard - uk site | xtreme wales - extreme clothing
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 01:47.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42