what does padding mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

what does padding mean?

16th Feb 2017, 1:26 PM
Junaid Shah
Junaid Shah - avatar
6 Answers
+ 11
the space between the main content and the border of the element is called as padding area.
16th Feb 2017, 1:49 PM
Siddharth Saraf
+ 4
it's the inner space between the border and the content of a box. search for html box model for further information and graphical explanation ;)
16th Feb 2017, 1:37 PM
Mario L.
Mario L. - avatar
+ 2
You should set the 'width' css property of your <img> ( you can also use the 'width' html attribute of <img> tag, as it isn't deprecated, but you should provide a value in pixel units with Html5, since you can set % in Html4 and it's still bad practice to not separate styles from content... and with Css, all css size units are accepted ^^ )
17th Feb 2017, 2:49 PM
visph
visph - avatar
+ 1
No: <img width="100" src="image.url" alt="description"> ... or in css: img { width:100px; } /* with a correct target: this one target all <img> ^^ */ ... or, in between both: <img style="width:100px" src="image.url" alt="description">
17th Feb 2017, 2:54 PM
visph
visph - avatar
0
What if i have to enlarge an image horizontally
16th Feb 2017, 1:49 PM
Junaid Shah
Junaid Shah - avatar
0
image-width:200px like this . git it then.
17th Feb 2017, 2:51 PM
Junaid Shah
Junaid Shah - avatar