Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
css div height to match other divs in 3 col design?
Old 03-30-2009, 04:53 PM css div height to match other divs in 3 col design?
AKA
Skilled Talker

Posts: 90
Location: Ireland
Trades: 0
Hi folks,
I've been using CSS designs for a while now but mostly just simple stuff.

I'm wondering now how do I make a div resize in height to match the content of other divs in the same parent div. For instance how can I get the the left blue col and the red blue col to extend down to match up with the main body content on

http://www.akamarketing.com/css.html (nicked the css code)

I was on glish.com and a lot of mentions about horiztonal sizing issues (resolutions, fluid designs etc.) but didn't spot my answer as nothing much on vertical issues.

If I statically define, the contain height to say 800px and then set each col (left,center,right) to 800px sure that will work but very inflexible as content can be any size and since site will run off a CMS left and right nav wiill be changeable too.

If I was using a HTML table it would be fine:

Code:
<table>
<tr><th colspan=3>HEADER</th></tr>
<tr><td bgcolor=blue >left</td><td bgcolor=grey>main content</td><td bgcolor=red>right</td></tr>
</table>
If I had more content in one col, the other cols would still match up. The bottom of the above page has the table version. Is this possible with CSS? Get what I'm trying to achieve?

thanks in advance.

Last edited by AKA; 03-30-2009 at 04:56 PM..
AKA is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-30-2009, 05:33 PM Re: css div height to match other divs in 3 col design?
Super Moderator

Posts: 1,576
Location: Kokkola, Finland
Trades: 1
you could look at some of the layouts here
http://matthewjamestaylor.com/blog/u...d-pixel-widths
davemies is online now
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 03-30-2009, 05:54 PM Re: css div height to match other divs in 3 col design?
AKA
Skilled Talker

Posts: 90
Location: Ireland
Trades: 0
Quote:
Originally Posted by davemies View Post
you could look at some of the layouts here
http://matthewjamestaylor.com/blog/u...d-pixel-widths
thanks man, excellent link.
AKA is offline
Reply With Quote
View Public Profile
 
Old 03-30-2009, 07:08 PM Re: css div height to match other divs in 3 col design?
AKA
Skilled Talker

Posts: 90
Location: Ireland
Trades: 0
http://matthewjamestaylor.com/blog/e...r-css-no-hacks - this has the specific fix.
AKA is offline
Reply With Quote
View Public Profile
 
Old 03-30-2009, 07:47 PM Re: css div height to match other divs in 3 col design?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
The EASIEST way to keep them all equal is the faux columns method, no extra divs either.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to css div height to match other divs in 3 col design?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15800 seconds with 12 queries