1

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 {
   width="1920px";
   height="1080px";
 }
<!doctype html>
<html>

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

</html>
Chris Forrence
  • 9,648
  • 11
  • 43
  • 59
vinzenzb
  • 11
  • 2

1 Answers1

3

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

Make them display: block to prevent that.

SLaks
  • 800,742
  • 167
  • 1,811
  • 1,896