Reputation: 19896
Does anyone know good example of using CSS to create rounded corner box where:
img
Let me know. Thanks
Upvotes: 2
Views: 625
Reputation: 3656
CSS3 properties for border images are as follows:
border-image: border-top-image border-right-image border-bottom-image border-left-image border-corner-image: border-top-left-image border-top-right-image border-bottom-left-image border-bottom-right-image
Example:
border-image: url(border.png) 27 27 27 27 round round;
Mozilla differs from IE,Chrome,Safari i.e using properties starting with -moz other than -webkit
For more explanation about these properties please look at these definitions and examples.
Upvotes: 0
Reputation: 282895
Well, you can do it with 3 divs.
<div class="bg"><div class="top"><div class="bot">text here</div></div></div>
bg
would have css like
background: url(path/to/repeated/background.gif) repeat-y;
Where the background spans the entire width of the div, since it's constant. That will tile both your left and right sides.
And then for the top and bottom just use images with no-repeat top left;
and no-repeat bottom left
. They would each have 2 corners plus all the imagey goodness inbetween.
Hopefully you can fill in the details from that if you have a good enough understanding of CSS.
Upvotes: 2
Reputation: 7700
I haven't know any such codes. But i know a best code for css rounded corners without images.
Check out this link
Its work in all browsers and easy to implement. The great thing is it works well in ie6!..Great na..
Upvotes: 0