Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- hyperlinking a div


lucy24 - 6:33 am on Oct 31, 2012 (gmt 0)


I think you're missing the point :( The original post said:
<a href="#"><div id="link"></div></a>

But I dont think this is W3 compliant. Especially when you start adding elements in the div.

Your example has the link INSIDE the div. We're talking about links OUTSIDE a div. Or outside any other block-level element. An image alone is not block-level, so it has no effect on validation.


Thread source:: http://www.webmasterworld.com/css/4513519.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com