I'm getting an odd error from the W3C CSS Validator and wonder if anyone
here can clue me in.
This is the error:
0 Parse Error Lexical error at line 1, column 3. Encountered: "D" (68),
after : "<!"
It's the only error that it is seeing but I can't make head nor tails of
what the problem is. There was initially a letter 'd' at the third position
on the first line when I submitted the CSS but it was lower case, not upper
case. It was simply the selector 'body' and I can't see any reason why that
would be a problem. The sequence "<!" doesn't occur anywhere in the CSS
file.
I added some comments and blank lines ahead of that first line in later
submissions but the error doesn't go away and the position of the error is
still given as line 1, column 3.
Here is the entire CSS. Perhaps one of you can see what the validator is
griping about? I was suspecting some kind of quirk with the validator itself
but I can successfully validate very similar CSS from other websites I've
done so that pretty much lets the validator off the hook. But I'm darned if
I can see why it doesn't like the CSS below.
==========================================
/* Link in HTML to stylesheet */
/* <LINK rel="stylesheet" TYPE="text/css"
HREF="
http://example.com/Foo/css/sfl.css" media="screen"> */
/* --OR-- */
/* <LINK rel="stylesheet" TYPE="text/css" HREF="css/main.css"
media="screen"> */
/* --OR-- */
/* <LINK rel="stylesheet" TYPE="text/css" HREF="main.css" media="screen"> */
/* @import
url("
http://example.com/css/tabsHorzGif/SlidingDoors/tabs_horz.Bisque.css")
screen; */
/* Style Sheet for video displays */
body {
color:#333333;
background-color: #F1F2F3;
font:14px Arial,Helvetica,Sans-serif;
margin:1px 0 0;
padding:0;
text-align:center;
}
a {
color:#777777;
}
a:hover {
color:#A77749;
}
em {
font-weight: 900;
}
img {
margin: 0;
}
.bordered {
border: medium inset #FFF;
}
.centered {
display: block;
margin-left: auto;
margin-right: auto;
}
#container {
background-color: #FF0000; /* must be red to keep bottom part of index
red */
margin:auto;
padding:0;
position:relative;
text-align:left;
width:700px;
}
#logo {
background:url("../images/Foo_logo_700x80.png") no-repeat scroll 0 0
#FFFFFF;
height:80px;
margin:0;
padding:0;
width:700px;
}
#logo h1, h2 {
display:none;
margin:0;
padding:0;
}
#notices {
background:none repeat scroll 0 0;
border-top:1px solid #FFFFFF;
height:75px;
margin:0;
padding:0;
position:relative;
width:700px;
}
#notices p {
margin:0;
padding:0;
}
#notices .p1 {
background:url("../images/my_logo_449x75.png") no-repeat scroll 251px 0
#FFFFFF;
height:75px;
left:0;
position:absolute;
top:0;
width:700px;
}
#notices .p1 span {
display:none;
}
#notices .p2 {
background:url("../images/Foo_Help_250x75.png") no-repeat scroll 0 0
#FFFFFF;
height:75px;
left:0;
position:absolute;
top:0;
width:250px;
}
#notices .p2 span {
visibility:hidden; /* if value is hidden, text is invisible */
white-space:nowrap;
}
#notices .p2 a {
float:right;
height:37px;
margin-bottom:1.4em;
margin-top:-1.3em;
overflow:hidden;
text-indent:-9000px;
visibility:visible;
width:250px;
}
#mainContent {
background:url("../images/mainContent_top.gif") no-repeat scroll left
top #CCCCCC;
border-top:1px solid #FFFFFF;
border-right: 1px solid #FFFFFF;
border-bottom: 0;
margin:0;
padding:0;
position:relative;
width:524px;
}
#mainContent .p1 {
margin:0;
padding:31px 15px 0;
}
#mainContent p {
margin:25px;
padding:10px 15px 0;
}
#mainContent .p3 {
margin:0;
padding:10px 15px 7px;
}
#mainContent h1 {
margin: 15px;
font-size: 175%;
}
#mainContent h2 {
margin: 15px;
font-size: 150%;
}
#mainContent h3 {
margin: 15px;
font-size: 125%;
}
#supportingText { /* embeds footer */
width:524px;
}
#footer {
background:url("../images/footer_top.gif") no-repeat scroll left top
#FF0000;
border-right: 1px solid #FFFFFF;
padding-left:15px;
padding-top:17px;
}
#linkList {
background:none repeat scroll 0 0 #FF0000;
border-top:1px solid #FFFFFF;
color:#FFFFFF;
left:525px;
position:absolute;
top:156px;
width:175px;
}
#linkList h3, #linkList h4 {
padding-left: 5px;
}
#linkList a, #footer a {
color:#FFFFFF;
text-decoration:none;
}
#linkList a:hover, #footer a:hover {
color:#FCD2B8;
}
#menu {
background:url("../images/linksInternal_top.gif") no-repeat scroll left
top #FF0000;
padding:10px 0 0;
}
#menu ul {
margin:0;
padding:0 15px 5px;
}
#menu li {
background:url("../images/bullet2.gif") no-repeat scroll 0 4px
transparent;
list-style-type:none;
margin:0;
padding:0 0 5px 15px;
}
#menu h3 {
/* display:none; */
}
#bottom {
background: url("../images/bottom.gif") no-repeat scroll left top
#FFFFFF;
height: 9px;
margin: auto;
width: 700px;
}
#last-update {
top: 0;
left: 0;
border-top: 1px ridge transparent;
border-right: 1px solid #FFFFFF;
padding: 0;
margin: 0;
background-color: #CCCCCC;
width: 524px;
height: 20px;
}
p.last-update-timestamp {
font-size: smaller;
text-align: left;
padding-left: 5px;
}
========================================
--
Rhino