CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 3rd, 2004, 07:30 AM
clevatreva clevatreva is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Stratford-upon-Avon, UK
Posts: 66 clevatreva User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Angry [resolved] Balance height of css columns

Hi

I've been experimenting with doing away with the 3 column table design of my site and replacing it with css containers.

This is the simple html code for the trial page:

PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"
>
<
HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<
STYLE type=text/css>#container {
    
BORDER-RIGHTgray 1px solid;
    
PADDING-RIGHT10px;
    
BORDER-TOPgray 1px solid;
    
PADDING-LEFT10px;
    
PADDING-BOTTOM10px;
    
MARGIN10px auto;
    
BORDER-LEFTgray 1px solid;
    
WIDTH760px;
    
PADDING-TOP10px;
    
BORDER-BOTTOMgray 1px solid
}
#banner {
    
PADDING-RIGHT5px;
    
PADDING-LEFT5px;
    
MARGIN-BOTTOM5px;
    
PADDING-BOTTOM5px;
    
PADDING-TOP5px;
    
BACKGROUND-COLORrgb(213,219,225)
}
#content {
    
PADDING-RIGHT5px;
    
PADDING-LEFT5px;
    
PADDING-BOTTOM5px;
    
MARGIN-LEFT215px;
    
MARGIN-RIGHT215px;
    
PADDING-TOP5px;
    
BACKGROUND-COLORgray
}
#sidebar-a {
    
PADDING-RIGHT5px;
    
PADDING-LEFT5px;
    
FLOATleft;
    
PADDING-BOTTOM5px;
    
MARGIN0px 5px 0px 0px;
    
WIDTH200px;
    
PADDING-TOP5px;
    
BACKGROUND-COLORrgb(235,235,235)
}
#sidebar-b {
    
PADDING-RIGHT5px;
    
PADDING-LEFT5px;
    
FLOATright;
    
PADDING-BOTTOM5px;
    
MARGIN0px 0px 0px 5px;
    
WIDTH200px;
    
PADDING-TOP5px;
    
BACKGROUND-COLORrgb(235,235,235)
}
#footer {
    
CLEARboth;
    
PADDING-RIGHT5px;
    
MARGIN-TOP5px;
    
PADDING-LEFT5px;
    
PADDING-BOTTOM5px;
    
PADDING-TOP5px;
    
BACKGROUND-COLORrgb(213,219,225)
}
</
STYLE>
</
HEAD>
<
BODY>
<
DIV id=container>
<
DIV id=banner>&nbsp;</DIV>
<
DIV id=sidebar-a></DIV>
<
DIV id=sidebar-b></DIV>
<
DIV id=content>&nbsp;</DIV>
<
DIV id=footer>&nbsp;</DIV></DIV></BODY></HTML


Now, the problem is that if I put some content in the left sidebar (a) it extends down, but the others do not follow. I could make each a fixed height, but the site uses variable content from a database to fill the sidebars, and an overly long height would push the footer way out of sight.

Any thoughts?




Trevor
__________________
"Good artists copy, great artists steal." Pablo Picasso

Last edited by clevatreva : January 4th, 2004 at 04:16 AM.

Reply With Quote
  #2  
Old January 3rd, 2004, 07:21 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,674 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 15 h 15 m 50 sec
Reputation Power: 687
I believe the answers you want can be found at /*Position Is Everything*/.

You will also find the answers to those perplexing float issues.

cheers,

gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

My html and css workshop, demos and tutorials.
Ask a better question, get a better answer.

Reply With Quote
  #3  
Old January 4th, 2004, 04:14 AM
clevatreva clevatreva is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Stratford-upon-Avon, UK
Posts: 66 clevatreva User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Hi Gary

Thanks for that.

I think I shall find the answer there, as it looks like what I'm after.





Trevor

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Balance height of css columns


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT