background image border

Issue

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?

Solution

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>

Answered By – NullPoiиteя

Answer Checked By – Mildred Charles (AngularFixing Admin)

Leave a Reply

Your email address will not be published.