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.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
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
Reply With Quote

  #2 (permalink)  
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.
Reply With Quote
  #3 (permalink)  
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?
Reply With Quote
  #4 (permalink)  
Old Jan 27th, 2008, 21:40
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 267
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?
Reply With Quote
  #5 (permalink)  
Old Jan 28th, 2008, 00:44
SuperMember

SuperMember
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.

Reply With Quote
  #6 (permalink)  
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?
Reply With Quote
  #7 (permalink)  
Old Jan 28th, 2008, 17:19
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,010
Blog Entries: 2
Thanks: 5
Thanked 23 Times in 20 Posts
Send a message via Skype™ to Aso
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.
Reply With Quote
  #8 (permalink)  
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
Reply With Quote
  #9 (permalink)  
Old Jan 29th, 2008, 14:56
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,010
Blog Entries: 2
Thanks: 5
Thanked 23 Times in 20 Posts
Send a message via Skype™ to Aso
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)
Reply With Quote
  #10 (permalink)  
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..
Reply With Quote
  #11 (permalink)  
Old Jan 30th, 2008, 15:06
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 16 Times in 14 Posts
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)
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 22:18.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43