
Originally Posted by
Dazza30
But i still have a problem, when i change the anchor to a DIV it wont validate because im coding in XHTML 1.0 Transitional and the class="thumbnail" is not allowed to be placed within a DIV tag.
What? You can place any class in a div tag. You must have made some other mistake. Here is the code in a xhtml 1.0 transitional page, go ahead and validate it:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<div class="thumbnail">Hover to view image <span><img src="http://www.google.com/intl/en_ALL/images/logo.gif" alt="" /><br />
Image Text <a href="http://www.google.com">Google</a></span> </div>
</body>
</html>
Please post a link to your site, or attach your code, and I will try to help you validate it.
Bookmarks