/ Published in: CSS
when ie fix is placed in conditionally commented stylesheet this provides a cross-browser valid implementation of rounded corners. It's limited to a corner radius of 2 pixels and doesn't anti alias but uses structurally semantic html
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
css: ul.qcorners { list-style-position: outside; list-style-type: none; font-family:Arial, Helvetica, sans-serif; font-size:1.3em; width:33%; } ul *{zoom:1;position:relative;}/*ie fix*/ .qcorners li{border:solid 1px #666;border-top:1px solid #666;margin-bottom:6px;} .qcorners a{background:#ccc;display:block;margin:-2px 0;border-top:1px solid #666;border-bottom:1px solid #666;text-decoration:none;color:#CC0000;} .qcorners strong{background:#ccc;display:block;margin:-2px 1px;border-top:1px solid #666;border-bottom:1px solid #666;padding:5px;} .qcorners a:hover,.qcorners a:hover strong{background:#fff;} --> html: <ul class="qcorners" > <li><a href="#"><strong> some text </strong></a></li> <li><a href="#"><strong> another item</strong></a></li> <li><a href="#"><strong> all lists and link tags... </strong></a></li> <li><a href="#"><strong> with a little strong </strong></a></li> <li><a href="#"><strong> stretches in 2 directions </strong></a></li> </ul>
URL: http://vitaminkdesign.com/blog/2008/10/20/rounded-corners-without-images/