Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

background image border

Tags:

Is there a css property to set a border around a background image? I've been searching for that but haven't found it, does it exist or am I left with needing to draw the line manually around my background images?

like image 849
stdcerr Avatar asked Sep 12 '12 05:09

stdcerr


People also ask

What is Border image slice?

The border-image-slice CSS property divides the image specified by border-image-source into regions. These regions form the components of an element's border image.


1 Answers

This can be done by adding image in a div and than set the border of the div

<div style="border:1px solid red;float:left;">    <div style="background:url("...");float:left;"></div> <div> 
like image 104
NullPoiиteя Avatar answered Nov 15 '22 13:11

NullPoiиteя