Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

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 ASP Free Forums Sponsor:
  #1  
Old January 23rd, 2006, 08:07 PM
Pluto Pluto is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 244 Pluto User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 8 h 25 m 59 sec
Reputation Power: 5
Question Fluid 3 column design

Hey guys...

Have a little question im stuck on... Im basically doing a 3 column fluid css design layout.

the left column and right column are fixed widths and the central column is fluid and stretches out.

That all works ok... but now i basically need to split the central stretching column in to 2 columns of equal width... but i cant give them 50% width each as this thinks 50% of whole page and just doesnt work... anyway im a bit lost... I am including the basic css styles below so you may see

any help would be so appreciated... thank you as always

css styles

Code:
/* General page layout styles */
body {
	background-color: #CCCCCC;
	text-align: center;
	margin: 0;	
}
#container {
	width: 90%;
	margin-right:auto;
	margin-left:auto;
	text-align: left;
	background-color: #FFF;
}

#colLeft {
	float: left;
	width: 194px;
}

#colMain {
	float: left;

}

#colMain #splitLeft {
	float: left;

}
#colMain #splitRight {
	float: left;

}


#colRight {
	float: right;
	width: 195px;
}


the basic page layout

Code:
<body>
	<div id="container">
		<div id="colLeft">asdasdd</div>
		<div id="colMain">
			<div id="splitLeft">left</div>
			<div id="splitRight">right</div>
		</div>
		<div id="colRight">asdasdd</div>
	</div>
</body>

Reply With Quote
  #2  
Old March 1st, 2006, 03:30 AM
shamrog12's Avatar
shamrog12 shamrog12 is offline
Newton's Apple Wizard
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 1,661 shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 2 h 39 m 22 sec
Reputation Power: 34
Send a message via AIM to shamrog12
What you should do is put a <div> in the middle column and inside of that div put the two columns. I think they should respect the width of their parent div. I usually apply bright background colors to my divs so I can see where they span.
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.


Reply With Quote
  #3  
Old March 2nd, 2006, 12:39 PM
webecho webecho is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 4 webecho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 5 sec
Reputation Power: 0
I don't think another Div will help ..you already have them inside a div colMain
If the colMain div had a fixed width you could do it, but as it's fluid...

try 3 column layout

this is about the best 3 column layout

fixed left fixed right fluid center.

Once you have that in place, then try the floated columns within the mid section.

Last edited by webecho : March 2nd, 2006 at 12:40 PM. Reason: add live link

Reply With Quote
  #4  
Old March 2nd, 2006, 02:58 PM
shamrog12's Avatar
shamrog12 shamrog12 is offline
Newton's Apple Wizard
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 1,661 shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 2 h 39 m 22 sec
Reputation Power: 34
Send a message via AIM to shamrog12
Quote:
Originally Posted by webecho
I don't think another Div will help ..you already have them inside a div colMain
If the colMain div had a fixed width you could do it, but as it's fluid...

try 3 column layout

this is about the best 3 column layout

fixed left fixed right fluid center.

Once you have that in place, then try the floated columns within the mid section.


Another div is exactly what he needs. The beauty of divs is that they're block display so it'll span the entire width of his inner column and allow him to do ANYTHING he wants inside of there. Fixed left fixed right fluid center is what he has. He wants to add to the center.

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > Fluid 3 column design


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 5 hosted by Hostway
Stay green...Green IT