Reputation: 23
I have a problem with li
, when I take li
in inline
display with list-style
(bullet-point ), then bullet-points don't show.
Upvotes: 2
Views: 662
Reputation: 63556
Another option, unfortunately not cross-browser:
li
{
display: inline;
}
li:before
{
content: '•';
padding: 0 .5em;
}
Upvotes: 0
Reputation: 152687
If you need crossbrowser compatibility
Here are 2 methods
Use images li {background-image:url(bullet.gif) no-repeat center left;padding-left:20px;display:inline;}
or use •
like this <li>• Lorem ipsum dolor sit amet</li>
Upvotes: 1
Reputation: 146460
The list bullets show up because <li>
elements have display: list-item
by default. If you change it to anything else (e.g., display: inline
or even display: block
), the bullets are gone.
If you want to accomplish horizontal menus, you have two possibilities:
display
attribute and play with float
insteadUpvotes: 5
Reputation: 160
Do you have margins/padding set for the ul or li's? Do you have a browser reset in your stylesheet setting list-style-type to none? I'm guessing it's one of those two things.
Upvotes: 0
Reputation: 265251
i think you'd have to use float if you want to show the list items flowed and not as block plus see the bullets
Upvotes: 0
Reputation: 108276
bullet-point
is not a valid value for list-style
. Instead, use one of these:
Click through to read more about this, including browser support
Upvotes: 7