css - HTML automatically adding padding? -
this question has answer here:
- image inside div has space below image 9 answers
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
Post a Comment