I want to put a space between my image and it's border.
What is the best way to do this?
You can use Padding in your style attribute or CSS class.
Padding allows you to control the space between your image and its border. Padding is just one piece of a larger concept, the CSS Box Model, which includes the content, padding, border and margin. I encourage you to check it out!
The CSS required in your case would be of the form:
<img src="foo.jpg" style="padding:10px;" />
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