html - How do I make an entire - element a link? -



html - How do I make an entire <li> element a link? -

so have bunch of tabs within of list element. i'm using ruby on rails in view, looks this:

<div id="top-nav"> <ul> <li> <%= link_to "home", user_root_path() %> </li> <li> <%= link_to "manage", manage_path() %> </li> </ul> </div>

and on.

how style in css can click on box around text go link, instead of having click on text itself?

i looked @ answers , tried using display:block; within top-nav , li element, hasn't been working.

thanks!

do following:

- <li> tag should have 0 padding - <a> tag should have 0 margin - <a> tag should have actual padding

html css

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -