I’m making a navigation menu with background images. I managed to vanish the text with text-indent, but it shows a very ugly border while clicking the link. How do I get rid of the border? My css is gven below;
#menu{
width:670px;
float:right;
}
#menu ul{
padding-top:10px;
}
#menu ul li{
list-style-type:none;
display: block;
float:left;
width:163px;
height:270px;
}
#menu ul li a{
height:270px;
display: block;
width:163px;
text-indent:-9999px;
border:none;
}
.box_1{
background: url(images/box_1.png) no-repeat;
width:163px;
height:268px;
border:none;
}
.box_2{
background: url(images/box_2.png) no-repeat;
width:163px;
height:268px;
border:none;
}
.box_3{
background: url(images/box_3.png) no-repeat;
width:163px;
height:268px;
border:none;
}
.box_4{
background: url(images/box_4.png) no-repeat;
width:163px;
height:268px;
border:none;
}
And my html:
<div id="menu">
<ul>
<li><a class="box_1" href="#">creative solutions</a></li>
<li><a class="box_2" href="#">dynamic development</a></li>
<li><a href="#" class="box_3">unlimited opportunities</a></li>
<li><a class="box_4" href=#">exceptional approach</a></li></ul>
</div>
Thanks in advance for helping!!
Apply another css style: