xhtml validation (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


vision2000 -> xhtml validation (4/13/2005 10:28:58)

Hi,

What code do I use to position the footer (copyright) so it validates correctly on this page?

http://www.financial-statements-adjusted.com

Line 179, column 33: document type does not allow element "div" here

<div class="text" align="center" >

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).




jaybee -> RE: xhtml validation (4/13/2005 10:50:25)

Ahh a nice easy one. You usually get that message if you don't have all your divs in pairs, or, you're trying to put the div in the middle of something you can't put one in.

In your case, you've got it outside of the page body which is not allowed.

quote:

</div>
</body>
<div class="text" align="center" >
Copyright © 2005 Financial Statements Adjusted All Rights Reserved</div>
</html>


You need to move the </body> tag after the div and before the </html> tag. That'll fix it. [:D]




vision2000 -> RE: xhtml validation (4/13/2005 11:36:45)

Thanks alot ...that did it




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
2.858887