PDA

Click to See Complete Forum and Search --> : My first CSS site evaluation


JT214
06-11-2007, 06:04 PM
Hey, This is my first attempt at a css layout. Let me know what you guys think.

http://www.fusiongamestudios.com (http://www.fusiongamestudios.com)

tZ
06-16-2007, 04:29 AM
The entire concept beyond CSS is to not rely on tables to layout the design of your page. CSS is used to style the page which includes where things are and how they arranged not just the colors, fonts and what not. Only use tables where tabular data is organized.

JT214
06-20-2007, 04:33 PM
The entire concept beyond CSS is to not rely on tables to layout the design of your page. CSS is used to style the page which includes where things are and how they arranged not just the colors, fonts and what not. Only use tables where tabular data is organized.

Only thing I'm using tables for the news section of the site. Are you saying that I should use Div's there too?

tZ
06-20-2007, 09:02 PM
What I would recommend is creating a three column layout over using the table. So basically you have one main container the float one div inside to the rleft and one to the right. Give those divs a set width and set the margin-left & margin-right of a third inside the main to clear the left and right floats.

tZ
06-20-2007, 09:25 PM
This more like what I would recommend:

CSS

body {
padding: 0;
margin: 0;
}

#container {
top: 50%;
left: 50%;
margin-left: -400px;
margin-top: -250px;
position: absolute;
height: 500px;
width: 800px;
}

#container #left {
float: left;
height: 100%;
background-color: red;
width: 20%;
}

#container #right {
float: right;
height: 100%;
background-color: lime;
width: 20%;
}

#wrapper {
height: 100%;
margin-left: 20%;
margin-right: 20%;
background-color: peru;
}


html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Menu</title>
<meta http-equiv="content-type"
content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="center.css" />
</head>
<body>
<div id='container'>
<div id ='left'></div> <!-- left -->
<div id ='right'></div> <!-- right -->
<div id='wrapper'></div> <!-- wrapper -->
</div> <!-- container -->
</body>
</html>


Where the bold in the above markup refers the above stylesheet and wrapper refers to the middle content area.

Jackimalyn
06-20-2007, 09:34 PM
what tz said

JT214
06-20-2007, 11:48 PM
Are you looking at the same site? I'm pretty sure that its a CSS layout right now.:confused:

hewligan
06-21-2007, 03:35 AM
Yup, tZ's looking at the same site, and his code gets rid of the big table that you have in the middle of your page.

If it ain't tabular data, it shouldn't be in a table.

EC
06-21-2007, 04:44 AM
Are you looking at the same site? I'm pretty sure that its a CSS layout right now.:confused:

Seriously? Tables used for layout is a CSS layout?

JT214
06-21-2007, 06:02 PM
I was thinking that tz was saying that my whole site was tables.(mis-understanding). I got rid of table(pretty easy convert). Change table and table tags to divs and change one thing in my style sheet.

Better now?

Thanks for all the feedback still learning.

tZ
06-22-2007, 05:15 AM
Some of your markup is using divs for no reason. For instance, your center content is riddled with useless divs. Instead you should use paragraph and heading tags like so:


<h2>graphic Artist in need!!</h2>
<h3 class="timeStamp">2007-06-12 14:34:36</h3>
<p class="message">Currently we are in need of Graphic Designers
for upcoming projects. If you are interested please sign up for our forum.</p>


If its not a division then don't use a div.