css - HTML automatically adding padding? -


this question has answer here:

my problem html script i'm padding-bottom in each div. can 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>

<img> inline element, gets spacing line-height.

make them display: block prevent that.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -