CSS/HTML: Highlighting the "full width avaialble" to a list item

Posted by JoshuaD on Stack Overflow See other posts from Stack Overflow or by JoshuaD
Published on 2011-03-20T19:18:18Z Indexed on 2011/03/20 19:19 UTC
Read the original article Hit count: 231

Filed under:
|
|
|
|

I'm working on a website for a small law office. In the side-menu, I'm trying to highlight the "current page". I have tried changing the background of the LI, but this doesn't quite do the trick; the list item doesn't spread to the full width of the menu, so it looks bad.

Here's a jfiddle. I would like the yellow section to highlight like the pink section is highlighted: filling up the full vertical and horizontal space, not just highlighting the text.

Any suggestions on how to do this? I've included the style tag in the html just for example, obviously, and my real solution will be a little different when it's done. But I can't move forward until I figure out how to somehow highlight the entire line.

© Stack Overflow or respective owner

Related posts about html

Related posts about css