I'm currently working on a responsive webpage, and I've encountered a new issue that I can't seem to resolve. I've wrapped three separate divs within a parent div, but for some unknown reason, the child divs are not displaying. Can someone please help me figure out why?
HTML
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="stylesheet" href="css/responsive.css" type="text/css" />
</head>
<body>
<div class="header">
<div class="logo"></div>
<div class="nav"></div>
<div class="search"></div>
</div>
</body>
</html>
CSS
html, body {
height: 100%;
width: 100%;
margin: 0;
}
.header{
height: 20%;
width: 100%;
}
.logo{
height: 100%;
width: 100%;
display: inline;
background: blue;
}
.nav{
height: 100%;
width: 50%;
display: inline;
background: green;
}
.search{
height: 100%;
width: 30%;
display: inline;
background: orange;
}