Take a look at the code.
There is white space below div that contains image.
How can I remove it?
If I delete doctype, white space would be removed. But I need doctype.
Edit: Also I want .container to be "inline-block" and changing It to "block" will just replace the space from below div to the lower part of the .container and won't remove it.
Sorry for bad English.
<!doctype html>
<head>
<style>
* {
margin: 0;
padding: 0;
}
.container {
display: inline-block;
width: 100%;
background: #000;
color: #fff;
}
.container img {
display: block;
}
</style>
</head>
<div class="container">
<img src="https://openclipart.org/assets/images/images/openclipart-banner.png" />
</div>
<div class="container">
123
</div>