skip to Main Content

Css – Style element and ::before on hover

I'm trying to use CSS to make the text "Permits Required" and the ::before pseudo-class turn red - the ::before contains an icon. .knHeader__menu-list-item:hover::before { color: #aa0003 !important; } .knHeader__menu-list-item:hover { color: #aa0003 !important; } <li class="knHeader__menu-list-item"> ::before <a href="#permits-required"…

VIEW QUESTION

Usage of pseudo classes inside the css itself?

.obj1a, .obj2b, .obj3c { border: 1px solid #c6ffc7; } .obj1a:hover:not(:focus), .obj2b:hover:not(:focus), .obj3c:hover:not(:focus) { border: 1px solid white; outline: 2px solid white; } .obj1a:focus, .obj2b:focus, .obj3c:focus { border-width: 3px; } The code above is what I'm currently using, and it works…

VIEW QUESTION
Back To Top
Search