+ 2
Css image
how set image width and weight in padding?
2 Answers
+ 10
img {
padding:0 0 10px 10px;
//top right bottom left
}
+ 5
you can use inline or eternal css but also general html img tag has property for it.
<img src="image.jpg"
width="200px"
height="100px" />
or
<img src="image.jpg"
style="width:200px;height:120px;"/>
note that if you use only height or weight browser will increase ot reduce size with 1:1 scale
here are examples
https://code.sololearn.com/Wk8Wgk17wM98/?ref=app
https://code.sololearn.com/Wkl3IriRYcK1/?ref=app