I am using border image code something like this, but it is not working:
CSS:
#container{
float:left;
position:absolute;
font-size:56px;
font-family:arial;
top:400px; left:200px;
border-bottom-image:url(images/border_bg.png);
-webkit-border-image:url(images/border_bg.png) 30 30 round;
-o-border-image:url(images/border_bg.png) 30 30 round;
border-image:url(images/border_bg.png) 30 30 round;"
}
HTML:
<div id="container">WE'VE GOT YOU COVERED.</div>
CSS Border Not Showing If you've set the shorthand border property in CSS and the border is not showing, the most likely issue is that you did not define the border style. While the border-width and border-color property values can be omitted, the border-style property must be defined. Otherwise, it will not render.
You need to set a border width and style in order to create some space for the border image to appear.
The <img> border attribute is used to specify the border width around the image. The default value of <img> border attribute is 0.
You have some syntax errors.
Here is a working example:
#container {
font-size:56px;
font-family:arial;
border-width: 50px;
border-style: solid;
border-image: url(http://placekitten.com/100/100) 25% round;
}
You need to set a border width and style in order to create some space for the border image to appear.
See reference: http://www.w3.org/TR/css3-background/#border-images
See demo at: http://jsfiddle.net/audetwebdesign/JdEkB/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With