Sunday, May 03, 2009

rounded corner for box styles in XHTML / CSS

Today I found a cool generator for rounded box layouts which is pretty simple to use. You only have to define your colors and click the button. You get all sources to create pretty rounded css boxes :-)

Simple and greate:

/* set millions of background images */
.rbroundbox { background: url(nt.gif) repeat; }
.rbtop div { background: url(tl.gif) no-repeat top left; }
.rbtop { background: url(tr.gif) no-repeat top right; }
.rbbot div { background: url(bl.gif) no-repeat bottom left; }
.rbbot { background: url(br.gif) no-repeat bottom right; }
/* height and width stuff, width not really nessisary. */
.rbtop div, .rbtop, .rbbot div, .rbbot {width: 100%;height: 7px;font-size: 1px;}
.rbcontent { margin: 0 7px; }.rbroundbox { width: 50%; margin: 1em auto; }


<div class="rbroundbox">
<div class="rbtop"><div></div></div>
<div class="rbcontent">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ornare ultricies libero. Donec fringilla, eros at dapibus fermentum, tellus tellus auctor erat, vitae porta magna libero sed libero. Mauris sed leo. Aliquam aliquam. Maecenas vestibulum.
</div><!-- /rbcontent -->
<div class="rbbot"><div>
</div><!-- /rbroundbox -->

They provide a download for needed images.

No comments:

Shared Cache - .Net Caching made easy

All information about Shared Cache is available here: Its free and easy to use, we provide all sources at codeplex.

Facebook Badge