I want to place two Div so that they both can cover whole body width. But, while writing the code provided below, a space is taking place between both Div. Why is it so? How to get rid off the space created between two Div'(s).
body {
margin: 0;
padding: 0;
box-sizing: border-box;
width: 100%;
background-color: red;
}
.container {
display: block;
width: 100%;
height: 100vh;
margin: auto;
margin-bottom: 0;
padding: 0;
background-color: rgba(73, 73, 73, 0.603);
box-sizing: border-box;
}
#subcontainer1 {
display: inline-block;
margin: 0;
padding: 0;
height: 99vh;
width: 25%;
background-color: antiquewhite;
box-sizing: border-box;
}
#subcontainer2 {
display: inline-block;
margin: 0;
padding: 0;
height: 99vh;
width: 74%;
box-sizing: border-box;
background-color: white;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="container">
<div id="subcontainer1"></div>
<div id="subcontainer2"></div>
</div>
</body>
</html>