marianaihh
marianaihh

Reputation: 29

Applying :hover to ::before (using li)

How do I apply :hover to ::before in the following code, I have tried several different combinations with no results. My goal to change the color of · When I hover over the link/li.

td.infolinks ul{
   padding: 0px 0px 0px 0px;
   margin: 0px;
   list-style-type: none;
}

td.infolinks ul li::before{
   content: "·";
   color: #FF6666;
   margin-right: 5px;
}

td.infolinks a:hover td.infolinks ul li::before{
   color: blue;
}

Upvotes: 0

Views: 914

Answers (1)

boxer santaros
boxer santaros

Reputation: 141

It should be

ul li:hover::before { color: #FF6666; }

Upvotes: 2

Related Questions