html - How to get list item's leading dot inside the container -
this duplicated entry this post, sorry.
so having markup below, ul element inside nav element.
<nav> <ul> <li>a</li> <li>b</li> <li>c</li> <li>d</li> </ul> </nav> and style code sections are
nav { width: 150px; float: right; } when open chrome's developer tools, noticed list items' dots outside nav box. box shadowed area in screenshot. there anyway can dots inside box?
use css...
nav ul { list-style-position: inside; } this bring discs inside container.
Comments
Post a Comment