Menu buttons using list items

Associate
Joined
2 Aug 2005
Posts
680
Does anyone know how I can make a list item a link without having to use the text as the link? Each li is a set height and width with a background image, and I've put some text in the li which will be indented off the page but how can I make the actual li a link, not just the text inside it?
 
erm im not sure because mine are wrapped around text (but the actual link is a box rather than just the text) so my a tag is inside the li tag.

Not sure if you can have empty a tags but worth a shot, by saying its block and of a set size then it might just be that size regardless of whats in between the tag?
 
you can just put them inside the <li>, such as

Code:
<li><a href="index.html">Home</a></li>
 
I tried that but the text becomes the link not the actual list item. At the moment the list items have ids which are set as fixed sizes in the css. Do you think I should make the a tag the id?
 
Back
Top Bottom