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
3 column layout, 100% height problem
Old 01-26-2008, 12:15 PM 3 column layout, 100% height problem
Experienced Talker

Posts: 43
Name: Gjore Sazdovski
Trades: 0
hello, It's been a while since the last time I came to this site

but later with the introductions...

I'm making a new site about tutorials/articles in all PC areas...

I created a 3 column, 100% heigh layout using reference on the net.
It works good, but I noticed a small problem when I added content...

the 3 columns don't have equal heights, if one column has more content it automatically streches to the footer, but the others dont :S

here's the CSS I'm using:

Code:
body, html {
    text-align:center;
    background-image:url('img/bg_patt.jpg');
    background-repeat:repeat;
    height:100%;
    margin:0 auto;
}
    
#frame {
    width:968px;
    margin-right:auto;
    margin-left:auto;
    margin-top:10px;
    text-align:left;
    height:100%;
}

#contentheader {
    width:968px;
    height:132px;
    padding-top:3px;
    margin-bottom:-3px;
    background:#000;
    background-image:url('img/header.gif');
    background-repeat:no-repeat;
    text-align: right;
    font-family: verdana;
    font-size: 11px;
    color: white;
}
        
#contentmenu {
    width:968px;
    height:38px;
    background:#000;
}

* html #frame {
    margin-top:-10px; /*IE hak4e za gorniot margin na cela strana..*/
}
        
#contentleft {
    width:187px;
    padding-top:11px;
    padding-left:10px;
    float:left;
    background:#000;
    background-image:url('img/contentbg.gif');
    background-repeat:repeat-x;
    border-left-style: solid;
    border-left-width: 1px;
    border-left-color: black;
    min-height:100%;
    font-family: verdana;
    font-size: 11px;
    color: white;
}
        
* html #contentleft {
    height: 100%;  /* IE hak4e :)*/
}
    
#contentcenter {
    width:581px;
    padding-top:11px;
    float:left;
    background:#000;
    background-image:url('img/contentbg.gif');
    background-repeat:repeat-x;
    min-height:100%;
    font-family: verdana;
    font-size: 11px;
    color: white;
}
        
* html #contentcenter {
    width:583px;
    height: 100%;  /* uste edno IE hak4e :)*/
}
    
#contentright {
    width:187px;
    padding-top:11px;
    padding-right:0px;
    float:left;
    background:#000;
    background-image:url('img/contentbg.gif');
    background-repeat:repeat-x;
    border-right-style: solid;
    border-right-width: 1px;
    border-right-color: black;
    min-height:100%;
    font-family: verdana;
    font-size: 11px;
    color: white;
}
        
* html #contentright {
    height: 100%;  /* i uste edno IE hak4e :D*/
}

#contentfooter {
    width:968px;
    height:25px;
    float:left;
    clear:both;
    background:#000;
    background-image:url('img/footer.gif');
    background-repeat:no-repeat;
    text-align: center;
    font-family: verdana;
    font-size: 11px;
    color: #696969;
}
Where's my mistake ?

thanks in advance..

Last edited by Gjore.S; 01-26-2008 at 12:21 PM.. Reason: accidental "submit" while writing :)
Gjore.S is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-26-2008, 07:17 PM Re: 3 column layout, 100% height problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Where's my mistake
thinking your columns can be equal height using CSS only.

<self-promo link>
http://www.candsdesign.co.uk/article...eight-columns/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-26-2008, 08:17 PM Re: 3 column layout, 100% height problem
Experienced Talker

Posts: 43
Name: Gjore Sazdovski
Trades: 0
that's what I've been looking for, thanks ALLOT, you saved my life
Gjore.S is offline
Reply With Quote
View Public Profile
 
Old 01-26-2008, 08:27 PM Re: 3 column layout, 100% height problem
Experienced Talker

Posts: 43
Name: Gjore Sazdovski
Trades: 0
oh, forgot to tell you something, in your tutorial there, in the code you forgot to include the "sortNumeric" function...

Cheers
Gjore.S is offline
Reply With Quote
View Public Profile
 
Old 01-27-2008, 03:41 AM Re: 3 column layout, 100% height problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
very complicated function.

Code:
function sortNumeric(a,b)
{
return a - b
}
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-27-2008, 07:39 AM Re: 3 column layout, 100% height problem
Experienced Talker

Posts: 43
Name: Gjore Sazdovski
Trades: 0
yeah I know just a reminder
Gjore.S is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to 3 column layout, 100% height problem
 

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.72707 seconds with 12 queries