/* styling li elements in the header with the navigation and nav-btn classes */ header .navigation li .nav-btn { padding: 10px; background-color: #000; color: #fff; } /* styling li elements in the header with the navigation and nav-btn classes after hover action */ header .navigation li .nav-btn:hover { background-color: #ff0157; color: #fff; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter