View Single Post
Old 11-06-2012, 05:00 PM   PM User | #4
Bri
New to the CF scene

 
Join Date: Nov 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Bri is an unknown quantity at this point
Quote:
Originally Posted by DanInMa View Post
I jus tran your code through the validator and got 19 errors...... anyhow. your .css file does not need <style> elements in it

and on the footer should be like this:

Code:
<div id="footer">
align="center" is deprecated in xhtml, use css to center things

id must be in qoutation marks ( or not at all will technically work too but thats a bad ide) , you were missing one

html elements generally only use semicolons in inline javascript and inline css style

Code:
< a href="/" onclick="javascript:dosomething();" style="text-align:center;">test</a>
Aha the missing quotation mark in the footer has fixed it along with the other tips... not sure exactly what it was but now it's working. How did you run it through the validator? I input it directly (copy&paste) and it says no errors

Also I know that the align in html is outdated, my book says so, it just hasn't gone into the new way of doing it yet thanks for the help!

Quote:
Originally Posted by hirelogo View Post
Remove the ; from the div id's and classes(ie.<div id="nav"; >). I'm not sure why those are there nor do I think they are valid. I may be wrong and you may be working out a code I've never heard of, but if this is simple html and css remove them.
You don't use semi-colons in the actual website html or the external style sheet? My book says you need them in the style sheet (I think) and when I removed them and only them from the style sheet it stopped working properly. I removed them from the actual html and I think that helped fix the problem I was having.
Bri is offline   Reply With Quote