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:

http://jsfiddle.net/tvp87/1/

.sidebarlinks {     display: block; } 

the advantage of method whole area hoverable , clickable.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -