Viewing topic:basic reminders for css
Page:
1
29-10-2007 - 9:42
| code | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
<style type="text/css">
A:visited{color:pink}
*the links turn out pink when you have visited them*
body{background-color:green}
*for a green background color*
body{margin="0"}
*the upper non-used pixels will be used so u wont have any space left in upper area*
table{border:1;color:purple;background-color:black;table-style:dashed}
*this makes ur table lay out much better, you control your table with css , gives you more types/styles *
h1{color:red}
p{background-color:gold;color:silver;}
hr{color:brown}
b{color:pink}
*the real basic stuff*
H1.rood{color:red}
*this is the class type so you can use different types of h1 with other colors *
hope you can do something with it XD
|
29-10-2007 - 09:43
20-12-2007 - 22:09
Just a few things I noticed:
<style type="text/css">
if you start a tag, please close it
Putting comments between *'s is really nice, but if you're trying to write CSS, please put comments between /* and */
Also, please use valid CSS, so end things like "border-color: red" with a semicolon (
everywhere.
Also, put things in lowercase, but that's just a personal preference.
body{margin="0"} is completely wrong, that should be body { margin: 0; } offcourse.
Also, things like body{} are more basic than span.classname {}, they should be the "real basic stuff"
But for the rest of it, it is a good reminder.
<style type="text/css">
if you start a tag, please close it

Putting comments between *'s is really nice, but if you're trying to write CSS, please put comments between /* and */
Also, please use valid CSS, so end things like "border-color: red" with a semicolon (
everywhere.Also, put things in lowercase, but that's just a personal preference.
body{margin="0"} is completely wrong, that should be body { margin: 0; } offcourse.
Also, things like body{} are more basic than span.classname {}, they should be the "real basic stuff"
But for the rest of it, it is a good reminder.
Page:
1
Reply to topic
Reply to topic


