1. Bullet & Number Types

The list-style-type property defines the visual marker for each list item.

ValueDescription
disc / circle / squareUnordered (ul)
decimalNumbers (1, 2, 3)
upper-romanRoman (I, II, III)
noneRemoves markers
ul { list-style-type: square; }
  • Apple
  • Banana
  • Mango

2. Bullet Position

Controls if the bullet sits inside the content flow or hangs outside in the margin.

ul { list-style-position: inside; }

Outside (Default): Bullet is in the margin.
Inside: Bullet acts like part of the text line.

POSITION: INSIDE

  • Inside position wraps text under the bullet.

POSITION: OUTSIDE

  • Outside position keeps the bullet hanging left.

3. Custom Image Bullets

You can replace standard bullets with custom icons or images using url().

ul { list-style-image: url('star.png'); }

💡 Tip: Ensure your image is very small (e.g., 16x16px) for the best look.

  • 🚀 Point Pikker Course
  • 💻 Hands-on Labs
  • 🎓 Certification

(Simulated with Emojis for demo)

4. Spacing (Box Model)

Padding

Space inside the list (between border and items).

ul { padding: 30px; }

Margin

Space outside the list (separating it from other elements).

ul { margin: 40px; }
  • Styled List Area
  • Margin is outside orange border
  • Padding is inside orange border