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 Layout: my first time...
Old 12-22-2006, 12:07 AM CSS Layout: my first time...
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
I really want to convert a site of mine to a CSS based layout. This site uses tables for pretty much all the layout. Like I said, I want to start using CSS layout.

I'm kinda nervous since this site is live, and I don't want to break it. What I need is a simple 3 column layout with fixed widths. I have read a lot of posts and followed a lot of links posted in this forum. There are a lot of ways to layout a site with CSS. But which is the easiest? Which will cause the least amount of pain? Is there one CSS layout method that just works, and one that you would just use without hesitation?
Tom_M is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-22-2006, 01:48 AM Re: CSS Layout: my first time...
blackhawkpowers's Avatar
Ultra Talker

Posts: 313
Name: Dustin
Location: GA
Trades: 0
it's not a difficult layout I think you'll be pleasantly surprised. You're really not looking at long at all to redesign this site but if you are worried about doing it with a live site the solution really isn't that difficult just copy everything to a subfolder named "redesign" copy all the files and start updating it there when it's all done and you've tested it then move it over
__________________
A patch is a piece of software which replaces old bugs with new bugs.

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
blackhawkpowers is offline
Reply With Quote
View Public Profile Visit blackhawkpowers's homepage!
 
Old 12-22-2006, 01:31 PM Re: CSS Layout: my first time...
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Looks like all you need to reproduce that is a 2-column layout anyway, which is much easier, especially as a fixed width.

From the current site, you'd have;

header
left column (menu)
right column (content)
footer

Not too hard to do really. You might want to browse these CSS templates (free) and find one that is laid out the way you want yours to be and adapt it.

http://www.openwebdesign.org/browse.php
__________________
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
 
Old 12-22-2006, 04:37 PM Re: CSS Layout: my first time...
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
I worked up something that might work. I works great in FF 2 and IE 6, and it is laid out exactly how I want it. My CSS validates (except for a few warnings which I will take care of later). I just want to make sure my code looks OK. Does anyone see anything wrong with this? I'll list the CSS below, and here is the link to the page: http://tmwebworks.com/template.php

Code:
body {
	background: #CCD8E0;
	color: #444;
	margin: 0;
	padding: 0;
}

/* A div to wrap everything up */
.container {
	background: white url(images/dotline.gif) top right repeat-y;
	width: 930px;
	padding: 0 10px 0 10px;
}

/* The main content div */
.content {
	float: left;
	width: 520px;
	margin: 0 40px 0 20px;
	background: #CCC;
}

/* Div to hold the sites main navigation */
.leftnav {
	float: left;
	width: 200px;
	padding: 0 0 20px 0;
	background: white url(images/menu_bg_new2.gif) bottom center no-repeat;
}

/* A column to add secondary links or announcements */
.rightnav {
	float: left;
	width: 150px;
	background: #F00;
}

/* Footer to hold copyright info */
.footer {
	background: blue;
	color: white;
	text-align: left;
	width: 520px;
	margin: 10px 0 10px 220px;
}

/* Used to keep the divs wrapped up in the container */
.clearer {clear: both;}
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 12-22-2006, 05:06 PM Re: CSS Layout: my first time...
Skilled Talker

Posts: 94
Trades: 0
The best site i found out how to make a css layout is " http://www.maxdesign.com.au/presentation/page_layouts/ ", its totally a good site, it explains it, and shows you what it does. you cant find tutorials like these tbh.

If your having trouble redesigning the website i would like to take it on as practise as i am learning css too , no cost for doing it. and id like to put it in my portfolio. PM me if your interested.
hellhound121 is offline
Reply With Quote
View Public Profile
 
Old 12-23-2006, 11:30 PM Re: CSS Layout: my first time...
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
Here is what I came up with. It works and does what I want it too. Just want to make sure this is OK. Here is the page at tmwebworks.com, and the CSS below:

Code:
body {
	background: #FFF;
	color: #000;
	margin: 0;
	padding: 0;
}
/* A div to wrap everything up */
.container {
	background: inherit;
	color: inherit;
	width: 930px;
	padding: 0 10px 0 10px;
}
/* The main content div */
.content {
	float: left;
	width: 520px;
	margin: 0 20px 0 20px;
	background: #CCC;
	color: inherit;
}
/* Div to hold the sites main navigation */
.leftnav {
	float: left;
	width: 200px;
	padding: 0 0 20px 0;
	background: #FFF url(images/menu_bg_new2.gif) bottom center no-repeat;
	color: inherit;
}
/* A column to add secondary links or announcements */
.rightnav {
	float: left;
	width: 160px;
	background: inherit;
	color: inherit;
	border: 1px solid #CCC;
}
/* Footer to hold copyright info */
.footer {
	background: blue;
	color: white;
	text-align: left;
	width: 520px;
	margin: 10px 0 10px 220px;
}
/* Used to keep the divs wrapped up in the container */
.clearer {clear: both;}
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 12-24-2006, 09:35 AM Re: CSS Layout: my first time...
blackhawkpowers's Avatar
Ultra Talker

Posts: 313
Name: Dustin
Location: GA
Trades: 0
well the only thing I think is a little weird about it is that you're floating all 3 containers it would usually be done by floating the left nave float: left; the right nav float:right; and the content to just be left without any floating but the way you're doing it still works so no problem..
__________________
A patch is a piece of software which replaces old bugs with new bugs.

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
blackhawkpowers is offline
Reply With Quote
View Public Profile Visit blackhawkpowers's homepage!
 
Old 12-24-2006, 09:47 PM Re: CSS Layout: my first time...
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
I will try that method also. Thanks for the tip!
Tom_M is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS Layout: my first time...
 

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