Reputation: 5
How can I make the list-style-type: square; only appear when I hover over one of the list items?
To be clear I want list-style-type: none; unless I'm hovering over one of the list items.
Upvotes: 0
Views: 1812
Reputation: 8793
you could try
li { list-style-type: none; }
li:hover { list-style-type: square; }
Upvotes: 0
Reputation: 29912
Use
li{
list-style-type:none;
}
li:hover{
list-style-type:square;
}
Upvotes: 0