- - Code, Content, and Presentation
- -- CSS
- ---- Overlay pseudo class content over element but keep element clickable
drhowarddrfine - 11:52 pm on Aug 15, 2013 (gmt 0)
There is no reason not to be using the so-called "HTML5 DOCTYPE". Notice, first, that there is no 5 in it:
Second, it puts all browsers into standards mode, which is its only purpose nowadays.
In any case, an anchor around a div element will work either way. It will just be flagged as invalid by the validator if you use the HTML4.01 doctype.
Thread source: http://www.webmasterworld.com/css/4601827.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com