joroco
11-19-2006, 03:55 AM
ok so i know you should check/validate your code, so i done that and fix afew things but now im confused, as i understand from what i have read im doing stuff right but aparently not when i validate the code....
can someone try and explain afew things please?
and dont tell me to go and read it all again cause i have read it, over and over again... if i knew what i was doing wrong i wouldn't be writing here now would i? sorry if im alittle sarcastic but im tired, stuck and need help from someone else THATS WHY I WRITE HERE :thumbsup:
so here it is
* Line : 4 (Level : 1) You have no color with your background-color : html
* Line : 4 (Level : 1) You have no color with your background-color : html
* Line : 5 font-family: You are encouraged to offer a generic family as a last alternative
* Line : 5 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : html
* Line : 5 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : html
* Line : 13 (Level : 1) You have no background-color with your color : h1
* Line : 21 (Level : 1) You have no background-color with your color : h2
* Line : 28 (Level : 1) You have no background-color with your color : h3
* Line : 36 (Level : 1) You have no background-color with your color : h4
* Line : 43 (Level : 1) You have no background-color with your color : p
* Line : 50 (Level : 1) You have no background-color with your color : ul
* Line : 57 (Level : 1) You have no color with your background-color : #container
* Line : 65 (Level : 1) You have no color with your background-color : #header
here is the CSS aswell
body, html {
margin: 0;
padding: 0;
background-color: #696969;
font-family: "Arial", "Verdana", "Trebuchet MS", "Tahoma";
font-size: 1em;
}
h1 {
margin: 0;
padding: 0;
font-size: 1.2em;
color: #FFFFE0;
font-weight: bold;
}
h2 {
margin: 0;
padding: 0;
font-size: 1.2em;
color: #FFFFE0;
}
h3 {
margin: 0;
padding: 0;
font-size: 1em;
color: #FFFFE0;
font-weight: bold;
}
h4 {
margin: 0;
padding: 0;
font-size: 0.9em;
color: #FFFFE0;
}
p {
margin: 0;
padding: 0;
font-size: 0.7em;
color: #FFFFE0;
}
ul {
margin: 0;
padding: 0;
font-size: 0.6em;
color: #FFFFE0;
list-style: disc;
}
#container {
margin: 0;
padding: 0;
background-color: #778899;
width: 700px;
height: auto;
}
#header {
margin: 0;
padding: 0;
background-color: #FFD700;
width: 700px;
height: 200px;
}
the background-color thing, do i have to set a background-color for everything? :confused: is that not adding more code there for taking away the use of css alittle? isn't it supposed to be that there is less code and the **** loads quicker?
and the "You have no color with your background-color : #header" that i really dont get... i have a background color with #header.. and the color i took from W3.orgs color chart..
EDIT : FOUND THE PROBLEM... IT MENT background-color: #fff; color: #fff; Sometimes all that is needed is a break, smoke and a trip to the toilet to fix the problem hahaha
and the generic family thing i dont understand.. what other "code" can i set font styles with? :confused:
HOPE SOMEONE CAN EXPLAIN THESE THINGS CAUSE I JUST DONT GET IT AND IM TIRED!! :thumbsup: :confused:
THANKS ALL, hope you've got a sense of humour, a little understanding and dont get "offended" in anyway! :cool:
can someone try and explain afew things please?
and dont tell me to go and read it all again cause i have read it, over and over again... if i knew what i was doing wrong i wouldn't be writing here now would i? sorry if im alittle sarcastic but im tired, stuck and need help from someone else THATS WHY I WRITE HERE :thumbsup:
so here it is
* Line : 4 (Level : 1) You have no color with your background-color : html
* Line : 4 (Level : 1) You have no color with your background-color : html
* Line : 5 font-family: You are encouraged to offer a generic family as a last alternative
* Line : 5 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : html
* Line : 5 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : html
* Line : 13 (Level : 1) You have no background-color with your color : h1
* Line : 21 (Level : 1) You have no background-color with your color : h2
* Line : 28 (Level : 1) You have no background-color with your color : h3
* Line : 36 (Level : 1) You have no background-color with your color : h4
* Line : 43 (Level : 1) You have no background-color with your color : p
* Line : 50 (Level : 1) You have no background-color with your color : ul
* Line : 57 (Level : 1) You have no color with your background-color : #container
* Line : 65 (Level : 1) You have no color with your background-color : #header
here is the CSS aswell
body, html {
margin: 0;
padding: 0;
background-color: #696969;
font-family: "Arial", "Verdana", "Trebuchet MS", "Tahoma";
font-size: 1em;
}
h1 {
margin: 0;
padding: 0;
font-size: 1.2em;
color: #FFFFE0;
font-weight: bold;
}
h2 {
margin: 0;
padding: 0;
font-size: 1.2em;
color: #FFFFE0;
}
h3 {
margin: 0;
padding: 0;
font-size: 1em;
color: #FFFFE0;
font-weight: bold;
}
h4 {
margin: 0;
padding: 0;
font-size: 0.9em;
color: #FFFFE0;
}
p {
margin: 0;
padding: 0;
font-size: 0.7em;
color: #FFFFE0;
}
ul {
margin: 0;
padding: 0;
font-size: 0.6em;
color: #FFFFE0;
list-style: disc;
}
#container {
margin: 0;
padding: 0;
background-color: #778899;
width: 700px;
height: auto;
}
#header {
margin: 0;
padding: 0;
background-color: #FFD700;
width: 700px;
height: 200px;
}
the background-color thing, do i have to set a background-color for everything? :confused: is that not adding more code there for taking away the use of css alittle? isn't it supposed to be that there is less code and the **** loads quicker?
and the "You have no color with your background-color : #header" that i really dont get... i have a background color with #header.. and the color i took from W3.orgs color chart..
EDIT : FOUND THE PROBLEM... IT MENT background-color: #fff; color: #fff; Sometimes all that is needed is a break, smoke and a trip to the toilet to fix the problem hahaha
and the generic family thing i dont understand.. what other "code" can i set font styles with? :confused:
HOPE SOMEONE CAN EXPLAIN THESE THINGS CAUSE I JUST DONT GET IT AND IM TIRED!! :thumbsup: :confused:
THANKS ALL, hope you've got a sense of humour, a little understanding and dont get "offended" in anyway! :cool: