Rounded corners theme and buttons are essentially important for today's era, a Web 2.0. For a while, i have been researching the most effective way to achieve rounded corners, a few techniques are using 4 rounded tiny images to cover each corner. Meanwhile, there are other methods purely by CSS account, after a few tight selections my choice would befall on the Spiffy Box. I have used it myself on several websites, it turned out well and cross browsers compatible in IE, Firefox, Chrome, Safari, and Opera.
On the Spiffy Box site, there are 4 step by step approaches explained by the following:
1. Choose your preferred width, height, corner radius, foreground and background color, etcetra.
2. The site will automatically generate the image and what you have to do is save the picture.
3. Copy and paste the css modification below to your external .css file.
/* set the image to use and establish the lower-right position */
.cssbox, .cssbox_body, .cssbox_head, .cssbox_head h2{
background: transparent url(yourimage.png) no-repeat bottom right}
.cssbox{
/* intended total box width - padding-right(next) */
width:335px !important; /* IE Win = width - padding */
width: 320px;
/* the gap on the right edge of the image (not content padding) */
padding-right:15px; /* use to position the box */
margin:20px auto}
/* set the top-right image */
.cssbox_head{
background-position:top right;
/* pull the right image over on top of border */
margin-right:-15px;
/* right-image-gap + right-inside padding */
padding-right:40px}
/* set the top-left image */
.cssbox_head h2{
background-position:top left;
margin:0; /* reset main site styles*/
border:0; /* ditto */
/* padding-left = image gap + interior padding ... no padding-right */
padding:25px 0 15px 40px;
height:auto !important;
height:1%} /* IE Holly Hack */
/* set the lower-left corner image */
.cssbox_body{
background-position:bottom left;
margin-right:25px; /* interior-padding right */
padding:15px 0 15px 40px} /* mirror .cssbox_head right/left */
4. Copy and paste the html code below to your .html / .php / .asp / .jsp file.
<div class="cssbox_head"> <h2>This is a header
</h2> <div class="cssbox_body"> <p>This is for your content.
</p>
Recent comments