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
CSS driven layout issues with 100% width
Old 06-25-2010, 12:23 PM CSS driven layout issues with 100% width
rhealey's Avatar
Junior Talker

Posts: 4
Name: Richard
Trades: 0
I have a website I am creating for my little girl http://beccacooks.richardhealey.com what I would like is a layout like this

[header/
[body]
[left nav/]
[main body 100% width/]
[right nav/]
[/body]
[footer]

my curent layout is hard coded and looks fine as it is done in css. but what I really want is my main body to stretch. but keep the right and left nav stuff where there sopose to be at fixed widths. I have tried various things found on web but cant find any that truly work.

Thanks
__________________
Richard Healey

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
rhealey is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-25-2010, 01:50 PM Re: CSS driven layout issues with 100% width
Novice Talker

Posts: 14
Name: robin brunet
Trades: 0
the following link is a great article to what you are looking to do.
http://www.maxdesign.com.au/articles/css-layouts/

and here is some code for a two sided layout. I just got finished with designing that one my self.

div.box400
{
clear: left;
float: left;
width: 35%;
padding: 50px 0px;
margin: 0 0 0 14%;
display: inline;
}


div.box401
{float: right;
width: 35%;
padding:50px 0px;
margin: 0 14% 0 0;
display: inline;}
robin b is offline
Reply With Quote
View Public Profile
 
Old 06-25-2010, 03:33 PM Re: CSS driven layout issues with 100% width
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
CSS
Code:
#wrapper {
	width:100%;
}
#header {
	height:120px;
	border:1em solid red;
}
#footer {
	height:120px;
	border:1em solid black;
}
#left {
	float:left;
	width:15%;
	border:1em solid blue;
	margin:0 1em 0 0;
}
#right {
	float:right;
	width:15%;
	border:1em solid grey;
	margin:0 0 1em 0;
}
#centre {
	float:none;
	width:60%;
	margin:0 auto;
	border:1em solid orange;
}
HTML Code:
<div id="wrapper">
<div id="header"> Header Section</div>
<div id="right"> Right hand</div>
<div id="left"> Left hand</div>
<div id="centre"> Content section</div>
<div id="footer"> Footer Section </div>
</div>
USING the document float and floating elements rather than trying to fight against the natural layout.

http://www.modtalk.co.uk/_site/layou...n/with-floats/

BTW the borders are only there to show the layout.
__________________
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?

Last edited by chrishirst; 06-25-2010 at 03:35 PM..
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-04-2010, 02:30 PM Re: CSS driven layout issues with 100% width
Junior Talker

Posts: 1
Trades: 0
I checked out your website and it looked cool. Your daughter will always remember you cared.

Last edited by finegoldtube; 07-04-2010 at 02:32 PM.. Reason: Spelled a word wrong
finegoldtube is offline
Reply With Quote
View Public Profile
 
Old 07-05-2010, 09:34 PM Re: CSS driven layout issues with 100% width
rhealey's Avatar
Junior Talker

Posts: 4
Name: Richard
Trades: 0
Becca is really excited about her site. She has been baking alot of stuff and trying to get pictures. My next goal on the site is to get the header image (its a background image) to rotate. We have about 4 now that we like our plan is to make a few dozen and have them match somewhat the item that is being displayed. Its alot of work and will take many years to add all of the elemnts we want to the site. We still need to add user logins and I want to play with the layout and try some of the above listed things.

Thanks all for the imput. I hate static sized sites. I have a huge 24 inch monitor and hate to see the sliver websites down the middle.

Thanks
__________________
Richard Healey

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
rhealey is offline
Reply With Quote
View Public Profile
 
Old 07-06-2010, 02:46 PM Re: CSS driven layout issues with 100% width
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
have them match somewhat the item that is being displayed. Its alot of work
Hopefully you don't mean geting a header image to match a page is a lot of work?

'cos that would only need about 5 lines of code to make it happen.
__________________
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 online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-07-2010, 12:12 AM Re: CSS driven layout issues with 100% width
rhealey's Avatar
Junior Talker

Posts: 4
Name: Richard
Trades: 0
When I say match im saying when showing say a cake recipe I want the header to show a cake, when its displaying say a pasta recipe i want to show a pasta dish. The site is all database driven with the ingredients all enterd as key words to group recipes together and in common. I need to get enough images to classify them with types of recipes and then display the closest to the type in question. Right now I have only 2-3 decent images (my picture taking skills are not as good as my programming skills) that and I have to balance this all between work and family. Each day I get either 2-3 new recipes added or 1 to 2 little features tweaked.
__________________
Richard Healey

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
rhealey is offline
Reply With Quote
View Public Profile
 
Old 07-07-2010, 12:21 AM Re: CSS driven layout issues with 100% width
rhealey's Avatar
Junior Talker

Posts: 4
Name: Richard
Trades: 0
Quote:
Originally Posted by chrishirst View Post
I was sitting here looking at this (Its exactly what i wanted) is there a easy way to make all 3 columns end at the same level. In the quoted link the left hand and right hand are not the same height and I want them to always be same height for example some pages the left hand (where I put my menu) may be longer then the center and or right hand. some times the center is longer and then there are times that the right hand is longer. I want all 3 to display even heights. Is there a easy css trick to do that.

Even if I cant get all the same height I plan to change to something simular to that. but if all 3 can always match height thats even better.

Thanks again
__________________
Richard Healey

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
rhealey is offline
Reply With Quote
View Public Profile
 
Old 07-07-2010, 10:13 AM Re: CSS driven layout issues with 100% width
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
is there a easy way to make all 3 columns end at the same level.
Not without javascript. The alternative would be the faux columns method, which is still the easiest way to get the effect.
http://www.alistapart.com/articles/fauxcolumns/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS driven layout issues with 100% width
 

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