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,860
  • 11
  • 47
  • 62
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
  • 837,282
  • 173
  • 1,862
  • 1,933