Andri
Andri

Reputation: 573

list-style outside isn't displayed but inside is

The black discs before content inside the "li" are visible with this css: li{ list-style: disc inside none; } But they don't show up with this code: li{ list-style: disc outside none; } How can I make them visible ?

Upvotes: 2

Views: 2544

Answers (2)

Md. Sanbir Hossain
Md. Sanbir Hossain

Reputation: 11

If padding-left not works then use margin-left to the main element for ex. in ul, then the li would get this disc outside perfectly.

Upvotes: 1

Andri
Andri

Reputation: 573

Set the padding-left attribute of the parent "ul" to something like: "20px", and they will show up.

Upvotes: 4

Related Questions