html - How i can make background color of my links match my border -
so way have links background color extend covers inside borders
heres looks right now:
http://i.imgur.com/7mwpfw2.png
html code
<style> a:hover{ text-decoration:underline; background-color:#ccffff;} </style> <ul style="margin-right:20px; margin-left:-25px"> <h2> <li class="sidebarlinks"><a href="test3.html">kappa</a></li> <br> <li class="sidebarlinks"><a href="test2.html">banana</a></li> <br> <li class="sidebarlinks"><a href="test1.html">energydrink</a></li> </h2> </ul> css code
a:link { text-decoration:none; color:black; font-size:35px; background-color:#9afeff } a:visited { text-decoration:none; } .sidebarlinks { border:2px solid black; border-radius:10px }
set display property "block" "a" elements:
.sidebarlinks { display: block; } the advantage of method whole area hoverable , clickable.
Comments
Post a Comment