0
votes

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.

3
Thanks everyone! Good to know! :Duser2985669

3 Answers

1
votes

FIDDLE

HTML

<ul>
    <li>Item</li>
</ul>

CSS

li{
    list-style-type:none;
}
li:hover{
    list-style-type:square;
}
0
votes

Use

    li{
        list-style-type:none;
    }
    li:hover{
        list-style-type:square;
    }
0
votes

you could try

li { list-style-type: none; }
li:hover { list-style-type: square; }