One Pixel Rounded Corners
An interesting technique is popping up—1-pixel rounded corners.
Here’s example code for making this effect. A more complete discussion of this is located here. And a demo of the following code is found here.
<html>
<head>
<style>
<!--
ul {
width:180px;
list-style-type:none;
margin:0 auto;
padding:0;
}
li a {
display:block;
position:relative;
border-width:1px 0;
border-color:#ccc;
border-style:solid;
color:#555;
text-decoration:none;
margin:4px 1px;
}
li a span {
display:block;
position:relative;
margin:0 -1px;
border-width:0 1px;
border-color:#ccc;
border-style:solid;
background-color:#eee;
padding:2px 6px;
}
li a:hover {
border-color:#aaa;
color:#333;
}
li a:hover span {
border-color:#aaa;
background-color:#ddd;
}
//-->
</style>
</head>
<body>
<ul>
<li>
<a href="#"><span>Testlink</span></a>
<a href="#"><span>Testlink</span></a>
<a href="#"><span>Testlink</span></a>
</li>
</ul>
</body>
</html>
Comments
No one's commented yet. Add yours!
Add Comment