Reply
CSS 3 Columns Equal Heights
Old 04-11-2008, 07:19 PM CSS 3 Columns Equal Heights
carterdea's Avatar
Ultra Talker

Posts: 304
Location: az
Hello-

I'm working on a site where I need 3 small columns of equal height. I really would like to do this using CSS but I'm having a lot of trouble. Here's my site so far: http://carterdea.com/clients/thedeangelisgroup

Look at the bottom 3 uneven columns and you'll see what I'm trying to do.

I'm fed up and almost willing to use tables to get the look I want!

Thanks for your help

Carter
__________________
Carterdea.com
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
When You Register, These Ads Go Away!
     
Old 04-11-2008, 07:38 PM Re: CSS 3 Columns Equal Heights
LadynRed's Avatar
Super Moderator

Posts: 6,065
Location: Tennessee
Ok, the easiest way to beat this type of problem is to use the faux columns method. Seriously, it will save your sanity. Make a background image for #bottom that consists of the white background with the gray lines separating the boxes. Repeat it vertically, it only has to be a couple of pixels high to work. Then put a 1 pixel gray border on the top and bottom of the #bottom box and you'll be all set - no hair-pulling
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-11-2008, 07:40 PM Re: CSS 3 Columns Equal Heights
chrishirst's Avatar
Super Moderator

Posts: 11,885
Location: Blackpool. UK
Well if you don't mind using a bit of js to sort it.

http://www.candsdesign.co.uk/article...eight-columns/
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-11-2008, 08:03 PM Re: CSS 3 Columns Equal Heights
wayfarer07's Avatar
Insomniac

Posts: 573
Name: Abel Mohler
Location: Asheville, North Carolina USA
Quote:
Ok, the easiest way to beat this type of problem is to use the faux columns method.
I agree. This is what I do almost every time.
__________________
Go FREELANCE <=====||=====> Hire Me
wayfarer07 is online now
Reply With Quote
View Public Profile
 
Old 04-12-2008, 07:00 PM Re: CSS 3 Columns Equal Heights
carterdea's Avatar
Ultra Talker

Posts: 304
Location: az
Oh yes! I remember reading about this in ALA.

Now I did the faux columns, but my floats made a background image impossible. I took out the floats, but now how should I make these columns next to each other w/o floats?

Thanks,

Carter
__________________
Carterdea.com
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
Old 04-12-2008, 07:04 PM Re: CSS 3 Columns Equal Heights
wayfarer07's Avatar
Insomniac

Posts: 573
Name: Abel Mohler
Location: Asheville, North Carolina USA
Why don't you make part of the "column" image transparent so that you can put a background behind it? You seem to have a simple enough image there that you could use a transparent GIF, which will work in all of the browsers.
P.S. I'm not sure why you can't use floats, they seem appropriate for this situation.
__________________
Go FREELANCE <=====||=====> Hire Me

Last edited by wayfarer07 : 04-12-2008 at 07:07 PM.
wayfarer07 is online now
Reply With Quote
View Public Profile
 
Old 04-12-2008, 07:12 PM Re: CSS 3 Columns Equal Heights
carterdea's Avatar
Ultra Talker

Posts: 304
Location: az
Oh. Wow. I got it. I'm stupid. I'm sorry.

Now, wayfarer07, what are you trying to say? I'm sorry but I'm not totally understanding it.
__________________
Carterdea.com
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
Old 04-12-2008, 07:15 PM Re: CSS 3 Columns Equal Heights
wayfarer07's Avatar
Insomniac

Posts: 573
Name: Abel Mohler
Location: Asheville, North Carolina USA
Never mind, I think I misunderstood what you were trying to do. I thought you wanted another background that would show through the columns.
__________________
Go FREELANCE <=====||=====> Hire Me
wayfarer07 is online now
Reply With Quote
View Public Profile
 
Old 04-12-2008, 09:06 PM Re: CSS 3 Columns Equal Heights
Experienced Talker

Posts: 35
Name: Gjore Sazdovski
I would STRONGLY recommend chrishirst's tutorial.

I works HELL great!
Gjore.S is offline
Reply With Quote
View Public Profile
 
Old 04-12-2008, 09:16 PM Re: CSS 3 Columns Equal Heights
carterdea's Avatar
Ultra Talker

Posts: 304
Location: az
Oh, I just checked my site in IE 7 and it looked wonky! Any suggestions?
__________________
Carterdea.com
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
Old 04-12-2008, 09:41 PM Re: CSS 3 Columns Equal Heights
Experienced Talker

Posts: 35
Name: Gjore Sazdovski
Quote:
Originally Posted by carterdea View Post
Oh, I just checked my site in IE 7 and it looked wonky! Any suggestions?

post #3 bro, it won't bite you...
Gjore.S is offline
Reply With Quote
View Public Profile
 
Old 04-13-2008, 10:14 AM Re: CSS 3 Columns Equal Heights
LadynRed's Avatar
Super Moderator

Posts: 6,065
Location: Tennessee
That layout is simple enough that I see no real reason to use JS. As for what's wrong in IE7, I'll have to go fire up my laptop to see it and get back to you.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 01:06 PM Re: CSS 3 Columns Equal Heights
carterdea's Avatar
Ultra Talker

Posts: 304
Location: az
Quote:
Originally Posted by Gjore.S View Post
post #3 bro, it won't bite you...
I'll use it if I can't figure this out, but considering I have no experience w/ javascript, I'd very much like to do it in CSS.
__________________
Carterdea.com
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
Old 04-14-2008, 02:42 PM Re: CSS 3 Columns Equal Heights
LadynRed's Avatar
Super Moderator

Posts: 6,065
Location: Tennessee
No need for JS. IE7 still suffers from it's hasLayout nonsense. All you need to do is put a height: 1%; on #bottom and the #bottom div will stretch properly. You should use a conditional comment to target a separate CSS file for this hack - aka "the Holly Hack".
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 05:36 PM Re: CSS 3 Columns Equal Heights
carterdea's Avatar
Ultra Talker

Posts: 304
Location: az
Thanks. That's perfect.
__________________
Carterdea.com
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
Reply     « Reply to CSS 3 Columns Equal Heights
 

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

vB 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.17826 seconds with 13 queries