View Full Version : parse error? I'm a CSS dummy.


pinkflamingo
12-26-2004, 04:19 AM
I'm new to this whole web design thing, but I thought I had it figured out pretty well - until I searched the web frantically and couldn't find out what the booty a "parse error" is. I was validating my CSS with the w3schools thing, and I fixed everything except for this:

Line: 13
Parse error - Unrecognized : <style type="text/css"> A:link { color:#000000; font-size:9pt; font-family:Arial; font-style:normal; font-weight:bold; text-decoration:none; font-variant:small-caps; text-transform:normal; background-color:#ffffff; }

It works when I put an individual style sheet on each page, but I want to link to an external sheet so I don't have to change every single page. Also, I got a "To work as intended, your CSS style sheet needs a correct document parse tree. This means you should use valid HTML." :confused:

Here's the CSS:
<style type="text/css">

A:link {
color:#000000;
font-size:9pt;
font-family:Arial;
font-style:normal;
font-weight:bold;
text-decoration:none;
font-variant:small-caps;
text-transform:normal;
background-color:#ffffff;
}
A:hover {
color:#000000;
font-size:9pt;
font-family:Arial;
font-style:italic;
font-weight:normal;
text-decoration:underline;
font-variant:small-caps;
background-color:#ffffff;
}
A:active {
color:#000000;
font-size:9pt;
font-family:Arial;
font-style:italic;
font-weight:normal;
text-decoration:underline;
font-variant:small-caps;
text-transform:none;
background-color:#ffffff;
}
A:visited {
color:#000000;
font-size:9pt;
font-family:Arial;
font-style:italic;
font-weight:normal;
text-decoration:underline;
font-variant:small-caps;
text-transform:none;
background-color:#ffffff;
}

body
{ margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
font-family: arial;
color: #000000 ;
font-size: x-small;

}

#header {
margin: 0px;
padding: 0px;
height: 0px;

}
#left {
position: absolute;
left: 15px;
top: 110px;
width: 200px;
padding: 5px
}
#center {
position: absolute;
top: 110px;
width: 650px;
margin-left: 230px;
margin-right: 15px;
padding: 5px
}
</style>

Thanks so much! :)

Also - I'm new to the board! Hi to everyone!

Rosey
12-26-2004, 04:25 AM
If that's an external style sheet, take out the <style> tags.

If that doesn't work, give us your url.

pinkflamingo
12-26-2004, 04:39 AM
Ah! Thanks so much! Merry Christmas!