JZK JZK - 1 year ago 76
CSS Question

Increase width in UL list bullets

how to style UL list bullets.
I'm using squares and all I need is to increase width. Is there any way how to do it except using custom images ?
Thank you

Answer Source

Something like this, using ::before and using content CSS:

ul li {
  list-style: none;
ul li::before {
  content: "";
  display: block;
  border: 2px solid #000;
  width: 10px;
  margin-left: -20px;
  margin-top: 1em;
  margin-bottom: -0.67em;
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
  <li>Item 4</li>
  <li>Item 5</li>



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