/ Published in: CSS
URL: http://www.html.it/articoli/nifty/index.html
Expand |
Embed | Plain Text
<div id="container"> <b class="rtop"> <b class="r1"></b> <b class="r2"></b> <b class="r3"></b> <b class="r4"></b> </b> <!--content goes here --> <b class="rbottom"> <b class="r4"></b> <b class="r3"></b> <b class="r2"></b> <b class="r1"></b> </b> </div> And here's it the basic CSS: .rtop, .rbottom{display:block} .rtop *, .rbottom *{display: block; height: 1px; overflow: hidden} .r1{margin: 0 5px} .r2{margin: 0 3px} .r3{margin: 0 2px} .r4{margin: 0 1px; height: 2px}
Comments
Subscribe to comments
You need to login to post a comment.

This is a nice solution for rounded corners, especially without images. Although the corners are technically pixelated, with the onset of higher resolution screens, it's not nearly as noticeable anymore.
good trick, but very much code. and why are u doing it with tag? or or were better.