[css-d] Making an empty div a link

2006-09-01 Thread Pete Home
I have the following code; div id=shopa title Shop href=../shop/index.shtmlShop/a /div And the css; #shop { background:#FF; color:#00; padding-top:20px; float:left; line-height:1em; width:620px; background-image:

Re: [css-d] Making an empty div a link

2006-09-01 Thread Tobias Baldauf
Just add: #shop a { display:block; width:100%; height:100%; } The link within the div 'shop' will then take 100% of the div's size and fill it completely - All the div-area will be clickable. If jumping or strange lines occur on hover, you might want to add 'text-decoration:none;' to the link

Re: [css-d] Making an empty div a link

2006-09-01 Thread Bradley Wright
I'm trying to make the whole image a link, but cannot see to get anything to link except the text which is left aligned and clickable. How about this: a href= id=shopShop/a style type=text/css #shop { display: block; width:620px; height:71px; text-indent: