Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

CSS Attempt


aaaron
 Share

Recommended Posts

hey, so I have just started CSS and HTML, PHP and whatever and I was wondering what you would think of this?

>! ![](http://img831.imageshack.us/img831/5753/webtemplate.png)

style.css

>! * { padding: 0; margin: 0; }
>! body {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
background: #174A000;
}
#wrapper {
margin: 0 auto;
width: 922px;
}
#header {
color: #333;
width: 900px;
float: left;
padding: 10px;
border: 1px solid #ccc;
height: 100px;
margin: 10px 0px 0px 0px;
background-color: #16A216;
}
#navigation {
float: left;
width: 900px;
color: #333;
padding: 10px;
border: 1px solid #ccc;
margin: 0px 0px 0px 0px;
background-color:#94C938;
}
#leftcolumn {
color: #333;
border: 1px solid #ccc;
background:#50B950;
margin: 0px 0px 0px 0px;
padding: 10px;
height: 350px;
width: 200px;
float: left;
}
#rightcolumn {
float: right;
color: #333;
border: 1px solid #ccc;
background:#50B950;
margin: 0px 0px 0px 0px;
padding: 10px;
height: 350px;
width: 678px;
display: inline;
position: relative;
}

index.html

>! CSS Layout
>!  

>! # {Website Name or Logo Here}
>!  

 [Your Page](#) | [Your Page](#) | [Your Page](#) | [Your Page](#)

 {Put Recent News/Updates here}

 {Put content here}
Link to comment
Share on other sites

"margin: 0px 0px 0px 0px;"
=
"margin: 0;"

right column could just be
```
#rightcolumn {
float: right;
color: #333;
border: 1px solid #ccc;
background:#50B950;
margin: 0px 0px 0px 0px;
padding: 10px;
height: 350px;
width: 678px;
float: left;
}

```
and navigation doesn't need that
float: left;
Link to comment
Share on other sites

Code isn't organized very well. Professionally, coders like to keep things with like properties grouped and organized from first appearing on the webpage code. Keeps things easier when de-bugging. It's good you are practising though. As for the code itself, you need to make that thing centered and less boxy. Start experimenting with different ways to use CSS, such as making a horizontal navigation bar with drop-downs from a list command. Due to disorganization and lack of creative use, code is worth 4/10.

- Adulese
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...