oboer oboer - 6 months ago 8
HTML Question

CSS background text filling the box

I'm trying to make a copy of a website as my first CSS/HTML exercise.
I can't figure out how to make the menu list so it has its background filling the box (extending until the right border).

Picture of what I have now (right side of the picture, red lines show where the background should go) and what I want to get (left side).

My code.

I've tried so far to achieve it e.g. with 'width' and 'display' parameters, but e.g.

display: block;
remove the lines between text. I'm out of ideas.

Answer
        display: block;
        width: 100%;
        margin-bottom: 2px;

to the #menu