oboer oboer - 1 year ago 97
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 Source
        display: block;
        width: 100%;
        margin-bottom: 2px;

to the #menu

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download