More information about the Underscore mailing list

[_] <a><div> ?

Jon Bennett flashcoder at jben.net
Fri May 28 16:43:35 BST 2004


On 28 May 2004, at 16:40, Andy Gale wrote:


> Jon Bennett wrote:
>
>> just wondering, is it considered bad form to place <a>'s around
>> <div>'s ?? I find it quite useful to generate almost a button, which
>> the whole div is the link, rather than just the text inside.
>> <a href="google"><div style="margin: 0; padding: 5px 0 5px 0; /* etc
>> etc */">this link to google</div></a>
>
> Define the a as a block element.
>
> a {
> display: block;
> }
>
> It will then behave the same as a div element.

ahh, ok, will try it thanks :-)

jon


>
> --
> underscore_ list info/archive -> http://www.under-score.org.uk
>
>
- -

jon bennett
t: +44 (0) 1225 341039 w: http://www.jben.net/
iChat (AIM): jbendotnet