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
Post a Comment