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.
|
|
|
|
|
![]() |
||
Resizing a div depending on another div size
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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 |
|
|
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
|||
|
|||
|
Re: Resizing a div depending on another div size
Are they visually symmetrical in the sense that they have borders around them which makes their sizes obvious?
|
![]() |
| Tags |
| resizing, div, depending, size |
| Thread Tools | |
|
|
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 |