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
Layouts: Liquid layout with three liquid colums and one fixed sized colum
Old 03-09-2009, 05:57 PM Layouts: Liquid layout with three liquid colums and one fixed sized colum
Novice Talker

Posts: 5
Trades: 0
Hi,

I have try all weekend to do this. A three colums layout with a center colum with a fixed size, and the other two colums (left and right) liquids.

The problem is, or that is what i think, that i can't specify any value for the width by the two liquid colums...

Anyone can help me?

Thanks!
And sorry for my english.

Last edited by pzin; 03-09-2009 at 05:58 PM..
pzin is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-09-2009, 06:31 PM Re: Layouts: Liquid layout with three liquid colums and one fixed sized colum
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Did you want something like this?
Code:
#left {
float: left;
width: 20%;
border: 1px solid #000;
height: 100px;
}
#center {
float: left;
width: 170px;
border: 1px solid #000;
height: 100px;
}
#right {
float: left;
width: 20%;
border: 1px solid #000;
height: 100px;
}
HTML Code:
<div id="left">
left
</div>
<div id="center">
middle
</div>
<div id="right">
right
</div>
- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-09-2009, 06:40 PM Re: Layouts: Liquid layout with three liquid colums and one fixed sized colum
Novice Talker

Posts: 5
Trades: 0
Thanks stevej.

Ok, that is the base idea. But with something like that, the lateral columns #right probably never go to the right border of the browser. In oder words, the website never will have a total width of 100%.
pzin is offline
Reply With Quote
View Public Profile
 
Old 03-09-2009, 06:46 PM Re: Layouts: Liquid layout with three liquid colums and one fixed sized colum
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Well, right. I assumed that you'd want to modify the code and put it in a container or something.
Code:
.container {
width: 294px;
height: 100px;
border: 1px solid #000;
}
- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-09-2009, 06:59 PM Re: Layouts: Liquid layout with three liquid colums and one fixed sized colum
Novice Talker

Posts: 5
Trades: 0
Ok, but its the same, with or without the container, right?

I have upload here your code. The problem is, and that is also my problem, that the three columns ocuppy the 100% of the totally width of the browser.
pzin is offline
Reply With Quote
View Public Profile
 
Old 03-09-2009, 07:15 PM Re: Layouts: Liquid layout with three liquid colums and one fixed sized colum
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Yes, they occupy the whole width of the browser because the container div has a width of 100%. If you give it a fixed width, or a fluid width less than 100%, it would not occupy the whole page.

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-09-2009, 07:26 PM Re: Layouts: Liquid layout with three liquid colums and one fixed sized colum
Novice Talker

Posts: 5
Trades: 0
Ok. I understand that. But the point is that the three columns must ocuppy the 100% of the browser, and there are the difficulty.
pzin is offline
Reply With Quote
View Public Profile
 
Old 03-09-2009, 09:33 PM Re: Layouts: Liquid layout with three liquid colums and one fixed sized colum
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Can't be really done with HTML & CSS alone, you will need javascript to recalculate the widths of the outer columns as the browser renders the page.

or you can fake it
http://www.modtalk.co.uk/_site/demos/wmt/three-column/
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-10-2009, 06:19 AM Re: Layouts: Liquid layout with three liquid colums and one fixed sized colum
Novice Talker

Posts: 5
Trades: 0
Wow.. It's was so simple!

Thanks chrishirst.
pzin is offline
Reply With Quote
View Public Profile
 
Old 03-10-2009, 08:39 AM Re: Layouts: Liquid layout with three liquid colums and one fixed sized colum
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Well, with HTML & CSS sometimes you need to think outside the box...
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-10-2009, 08:39 AM Re: Layouts: Liquid layout with three liquid colums and one fixed sized colum
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
... and inside the box, over the box and around all the sides of the box
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Layouts: Liquid layout with three liquid colums and one fixed sized colum
 

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