You are here: Re: Hyperlink for entire table cell rather then just the text - how is it done? « HTML « IT news, forums, messages
Re: Hyperlink for entire table cell rather then just the text - how is it done?

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)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация