Forum Moderators: open
<style type='text/css'>
a.clickLink{
display:block;
text-decoration:none;
}
</style>
<div class='clickContainer'>
<a href='http://www..com' class='clickLink'>
blahblahblah(images and inline elements)
</a>
</div>
<style type='text/css'>
a.clickLink{
display:block;
text-decoration:none;
}
</style>
<div class='clickContainer'>
<a href='http://www..com' class='clickLink'>
<table>
<tr>
<td>
Example Text
</td>
</tr>
</table>
</a>
</div>
Any thoughts on how to make this work?
Whilst using { display: } may be ok for achieving visual effects, using it for behavioural effect will always be fraught with reliability and cross-browser issues.
You may be able to use javascript to achieve the required result but it's likely to be tricky.
Kaled.
<!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=iso-8859-1" />
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
<title>Fitness Principles</title>
<style type='text/css'>
a.clickLink{
display:block;
text-decoration:none;
}
</style>
</head>
<body>
<div class='clickContainer'>
<table>
<tr>
<td>
<a href='http://www..com' class='clickLink'>Example Text</a>
</td>
</tr>
</table>
</div>
</body>
</html>
Thanks for the replies and if anyone has any other ideas feel free to chime in also!