Posted by Jim Moe on 12/10/06 18:02
David Smithz wrote:
>
> I have a 1row * 1 column table containing a text which acts as a hyperlink.
>
Why are you using a table at all?
> My aim is to have the text positioned in the cell but the visitor to be able
> to click anywhere within the cell to be able follow the hyperlink. (Not just
> the actual text itself and without relying on JavaScript).
>
In the example below you can click anywhere in the <p>, position the
<div> wherever you want.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Big URL</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.bigurl { border: 1px solid #789; width:70%; height: 5em;
position: absolute; top: 1em; left: 2em; }
.bigurl p { border: 1px solid #000; text-align:center; }
.bigurl a { display:block; }
</style>
</head>
<body>
<div class="bigurl">
<p>
<a href="./index.htm"> URL to follow. I can click anywhere
<br>in this link, not just the actual text.</a>
</p>
</div>
</body>
</html>
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
[Back to original message]
|