background image border


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?


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>

Answered By – NullPoiиteя

Answer Checked By – Senaida (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.