Resizing a div depending on another div size

This is a discussion on "Resizing a div depending on another div size" within the Web Page Design section. This forum, and the thread "Resizing a div depending on another div size 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 Sep 3rd, 2006, 08:53
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Resizing a div depending on another div size

I am sure this has been asked beforebut is there a way of having 2 divs the same height so if one div changes in height the other div automatically changes height to match.
I am trying to keep my page symmetrical
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 Sep 3rd, 2006, 09:42
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Resizing a div depending on another div size

Not possible without JavaScript. The common method to get around this problem is sticking both <div>'s in a container with the same background color as the div that will always be shorter than the other. Then apply a different background to the <div> with more content.
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 Sep 3rd, 2006, 14:26
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Resizing a div depending on another div size

Quote:
Originally Posted by AdRock View Post
I am sure this has been asked beforebut is there a way of having 2 divs the same height so if one div changes in height the other div automatically changes height to match. I am trying to keep my page symmetrical
Are they visually symmetrical in the sense that they have borders around them which makes their sizes obvious?
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

Tags
resizing, div, depending, size

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
images loading time changes depending on browser thosecars82 Web Page Design 5 May 19th, 2008 14:57
reading a log file one line at a time depending on timestamp eon201 PHP Forum 1 Dec 4th, 2007 05:54
How to customize content depending on URL? matthewpage Classic ASP 1 Nov 13th, 2006 04:50
Open different pages depending on value entered into input box IanW PHP Forum 5 Sep 15th, 2006 17:48
Display image/chart depending on variables from a form. Clare73 PHP Forum 5 Jul 20th, 2005 16:07


All times are GMT. The time now is 18:21.


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