I have the following HTML code
<!DOCTYPE html>
<html>
<head>
<title> Test page </title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
</header>
<div class="container">
<img src="img1.jpg" class="thumb">
</div>
</body>
</html>
And this is my CSS
* {
padding: 0;
margin: 0;
border:0;
vertical-align: baseline;
list-style: none;
box-sizing: border-box;
}
body {
background-color: grey;
}
header{
background-color: white;
height: 60px;
width: 100%;
}
.container{
background-color: red;
margin-left: 90px;
margin-right: 90px;
}
.thumb{
width: 400px;
}
My problem is that I can't understand why that little 2px border remains below the image, even with border: 0 and padding: 0.
Sorry if this is on a very basic level for the forum, I'm starting the html course at my school and I can't solve this at all so I thought this would be the best place to ask someone.