This is a discussion on "Making sure the height of both divs is =" within the Web Page Design section. This forum, and the thread "Making sure the height of both divs is = are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Making sure the height of both divs is =
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Making sure the height of both divs is =
Please could someone advise me what you need to do if for example you have to columns, lets say one contains the mainbody of the page and a right column with news, links etc.
The mainbody stretches longer than the rightcolumn and has a border around it. The right column also has a border but as it doesn't contain as much info this doesn't stretch to line up with the bottom of the main body. If I specify a height on the rightcolumn and preview it in IE it works beautifully, however in FF in messes the page up. What is the correct procedure of setting this up? Thanks |
|
|
|
|||
|
Re: Making sure the height of both divs is =
Lets have a link to the site so we can see what you see. |
|
|||
|
Re: Making sure the height of both divs is =
Last edited by csa; May 3rd, 2006 at 11:56. |
|
|||
|
Re: Making sure the height of both divs is =
If you can always guarantee the main column will be larger that the right, one solution might be to have a container div that surrounds both columns with its background colour set to the same as the lower section of the right-hand column. Take the right and bottom borders off the right-hand column and place them on the container instead. This should create the illusion that you have two equal columns. Last edited by ukgeoff; May 2nd, 2006 at 15:53. |
|
|||
|
Re: Making sure the height of both divs is =
Will give this ago thank you.
|
|
|||
|
Re: Making sure the height of both divs is =
I've amended this now but still have an issue with my borders.
http://www.wesellfudge.co.uk/pt/upload.htm The right hand border appears in IE but not FF, I've messed about with the padding here and there but it still doesn't make a difference. Any ideas?
Last edited by csa; May 3rd, 2006 at 11:56. |
|
|||
|
Re: Making sure the height of both divs is =
I'm pretty sure what you are experiencing is the difference between how IE and FF & Opera interprit the box model. You will need to set widths for FF & Opera which will work for other complian browsers as well and then tweak the widths for IE. BTW. You have some spurious entries in you css file such as { visibility:visible; } but no class or id name. I think there is some scope to refine your css as well. |
![]() |
| Tags |
| making, sure, height, both, divs |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Making div to drop down when div beneath it change it's height dimension ? | gitarista | Web Page Design | 2 | Oct 15th, 2007 23:59 |
| How to make a table height equal to the browser height ? | subhadip | Starting Out | 4 | Sep 20th, 2007 07:56 |
| Problems making the content area have a dynamic height | blizeH | Web Page Design | 41 | Aug 13th, 2007 01:19 |
| Divs in a row | hessodreamy | Web Page Design | 5 | Feb 17th, 2006 18:40 |