/ Published in: HTML
URL: http://www.internetsplash.com/
based on http://snipplr.com/view.php?codeview&id=1460, but actually works stright out of the box
Expand |
Embed | Plain Text
<div id="container"> <b class="rtop"> </b> <!--content goes here --> <b class="rbottom"> </b> </div> <div id="container"> <b class="rtop"> </b> <!--content goes here --> <b class="rbottom"> </b> </div> <div id="container"> <b class="rtop"> </b> <!--content goes here --> <b class="rbottom"> </b> #container { margin-bottom:30px; } .rtop, .rbottom{display:block; } .rtop *, .rbottom *{display: block; height: 1px; overflow: hidden; background: red;} .r1{margin: 0 5px;} .r2{margin: 0 3px } .r3{margin: 0 2px; } .r4{margin: 0 1px; height: 2px;} </style>
Comments
Subscribe to comments
You need to login to post a comment.

Not exactly right in IE5.5 but even there looks kinda cool.
why wouldn't you just use background images and css. This adds a lot of extra markup doesn't it?
Hey something looks familiar here.
http://www.html.it/articoli/nifty/index.html
Um.. why not just use the border-radius approach?
Class .rounded with these attributes: -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;
And then a div with class="rounded". Much simpler and takes about a quarter of the code. Ok so it wont work in IE at all, but it works in FF2 / 3, Opera (all as far as I know), Chrome and Safari. Oh and who cares about IE these days anyway? At least when it comes to things which arent required for the site to function (such as rounded corners)..
http://border-radius.com/ is a good site for rounded corners - just enter the radius for each corner and it does all the work for you.
Richard