+ 2

Css image

how set image width and weight in padding?

23rd Jul 2017, 5:38 PM
Mamadou lamine bah
Mamadou lamine bah - avatar
2 Answers
+ 10
img { padding:0 0 10px 10px; //top right bottom left }
23rd Jul 2017, 6:05 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 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
13th Sep 2017, 2:30 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar