As a newbie used to do to make a pading around her/his image isIs there an HTML attribute to put padding around an image? I am getting confused when I could not have a padding around an image on my web page. Can anyone guide me?
<img style="padding:10px;" src="link_to_your_image.jpg">
Normally, a web design will do thisWhat are the best ways to do this as a professional web designer?
<style type="text/css">
.imgclass {padding:10px;}
</style>
<img class="imgclass" src="link_to_your_image.jpg">
<img style="padding:10px;" src="link_to_your_image.jpg">
.myimage {
padding: 10px 5px 11px 12px; Explanation of setting:(top, right, bottom, left)
}
<!DOCTYPE html>
<html>
<body>
<h4>Padding around an image with hspace:</h4>
<p><img src="picture.gif" alt="picture info" width="42" height="42" align="middle" hspace="20">Is there an HTML attribute to put padding around an image? I am getting confused when I could not have a padding around an image on my web page. Can anyone guide me?
What are the best ways to do this as a professional web designer? </p>
</body>
</html>
$100 to your Paypal
300 Trophy Points
1 banner ad 728x 90
Referral link for :