Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

validating my site

Jun 24, 2008 5:55AM PDT

My site is:
http://ck.podzone.net/ck

I started work on validating my site today, figuring it's a good thing to do, and have now ran into some "trouble." I was working on it, and eventually decided to check out if my page would look different now that I had fixed a lot of the errors I was given, and I found that my styles set in CSS were gone. I checked my style sheet (http://ck.podzone.net/ck/ck.css) and noticed I had forgotten to add the top line & the bottom line, so I gave it that.

That gave me all my styles kinda ... except for my background color, and now the text is black instead of white.

What have I done wrong? You will see that the background color should look like the blue that's in the picture at the bottom of the page.

This validation thing tells me there's still a few things not validated, that I'm not sure what to do about. Suggestions?
<a href="http://validator.w3.org/check?uri=http%3A%2F%2***.podzone.net%2***%2Findex.html&charset=%28detect+automatically%29&doctype=Inline&group=0" target=_blank>http://validator.w3.org/</A>
(The URL is longer than that, but I truncated it using "a href" so it doesn't go past the post area.)

Thanks!

Discussion is locked

- Collapse -
hmm ... that last link
Jun 24, 2008 5:57AM PDT
- Collapse -
No <style..... on your css page needed
Jun 24, 2008 9:55PM PDT

That's for starters - your css does not need anything other than the plain css - so delete the <style type="text/css"> and the </style>.

Also, the center tag is deprecated (use the stylesheet to center your h2 tag), don't use <br> to create space - you do that with margins or padding in your stylesheet.

And use the proper doctype - HTML strict, not XHTML.

And you need to add the number symbol # before your color declarations - should be background-color: #8BB3EE;

- Collapse -
more info, please?
Jun 24, 2008 11:34PM PDT

How do I use the stylesheet to center it? Do I use the same command - < center > - but instead put it in the *.css file?

I know several < br /> is not clean, but I didn't know what else to use. How do I add margins/padding?

I think I tried using HTML strict, but it told me a lot of my stuff wasn't even related to HTML, and might be related to XHTML. But then again, I really don't know. How do I know which one I'm coding in - what's the difference?


Thanks for the suggestions.