W3C home > Mailing lists > Public > www-validator@w3.org > February 2006

Re: [VE][65] Error Message Feedback

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 05 Feb 2006 15:14:23 +0100
To: richard <rjs@gomonkeyjam.com>
Cc: www-validator@w3.org
Message-ID: <h12cu1tdtpgnf67igq5avt651uobe3rnp3@hive.bjoern.hoehrmann.de>

* richard wrote:
>The problem centres around me trying to use a <div> as a button for a hyperlink.
>
>My code follows the structure,
>
><a href="index.html"><div class="className"><p class="className">Home</p></div></a>

<a> can't have <div> children, you could try to use

  a { display: block }

in your style sheet and remove the div/p elements.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Sunday, 5 February 2006 14:13:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:20 GMT