Home »

How to create border using images by CSS3?

Question ListCategory: CSSHow to create border using images by CSS3?
jamessmith05 author asked 3 years ago
1 Answers
milleranthony7 author answered 3 years ago

Global Guideline . COM Read
By using border-image: property of css3 we can create a border using images like below

.roundpcds

{

border-image:url(borderpcds.png) 30 30 round;

-moz-border-image:url(borderpcds.png) 30 30 round; /* Firefox */

-webkit-border-image:url(borderpcds.png) 30 30 round; /* Safari and Chrome */

-o-border-image:url(borderpcds.png) 30 30 round; /* Opera */

}

.stretchPcds

{

-moz-border-image:url(borderpcds.png) 30 30 stretch; /* Firefox */

-webkit-border-image:url(borderpcds.png) 30 30 stretch; /* Safari and Chrome */

-o-border-image:url(borderpcds.png) 30 30 stretch; /* Opera */

border-image:url(borderpcds.png) 30 30 stretch;

}

Please login or Register to Submit Answer