Home Ask Login Register

Developers Planet

Your answer is one click away!

vinzenzb February 2016

HTML automatically adding padding?

My problem with this HTML script is that I'm always get a padding-bottom in each div. Can anybody see why?

 * {
   margin: 0px;
   padding: 0px;
 body {
<!doctype html>

    <img src="images/header.jpg">
    <img src="images/stuecke.jpg">
    <img src="images/termine.jpg">
    <img src="images/team.jpg">
    <img src="images/wo.jpg">



SLaks February 2016

<img> is an inline element, so it gets spacing from the line-height.

Make them display: block to prevent that.

Post Status

Asked in February 2016
Viewed 3,419 times
Voted 8
Answered 1 times


Leave an answer

Quote of the day: live life