so I am trying to create a simple image gallery using HTML and CSS, here's my code below
img{
float:left;
width: 30%;
margin: 1.66%;
}
<!DOCTYPE html>
<html>
<head>
<title>Gallery</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<img src="IMG_1.jpg">
<img src="IMG_2.jpg">
<img src="IMG_3.jpg">
<img src="IMG_4.jpg">
<img src="IMG_5.jpg">
<img src="IMG_6.jpg">
<img src="IMG_7.jpg">
<img src="IMG_8.jpg">
<img src="IMG_9.jpg">
</body>
</html>
and I should expect to get a 3*3 image grid, but here is what I got
there is HUGE whitespace at the left of the second row. when I inspect it, the blank doesn't belong to any of the images. WHY!