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?enter image description here

use css...

nav ul {     list-style-position: inside; } 

this bring discs inside container.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -