[CSS] Bullet points and display:block

Soldato
Joined
15 Jan 2004
Posts
10,194
I want the menu to look like this with the bullet points inside the orange boxes, but I want display:block; as well...

1

Now, when display:block; is added, the bullet points move up:

2


Solutions? :o
 
Apply all styling (background, border, block, width, height, etc.) to the a's instead of the li's. Leave the li's transparent/blank-style and use them only as containers.

EDIT: Also, don't think it's possible with the default list-style-position: inside bullets, only outside, or use "background: transparent url(/some/image.png) no-repeat scroll 0 0" on the a's with some padding-left to prevent overlap.
 
Last edited:
Correct me if I'm wrong, but isn't it just the OL and UL elements that are blocks, and the LIs are considered inline elements? Been ages since I used lists.
 
Back
Top Bottom