i have a html and css file i am creating a nav bar structure i created 3 div and assign them width of 20vw, 50vw, 30vw respectively and set those div display property inline-block but the problem is those div are not rendering in same line
Html Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<nav class="nav-bar">
<div class="nav-bar-columns">
<div class="nav-bar-column1">
Logo
</div>
<div class="nav-bar-column2">
Search Bar
</div>
<div class="nav-bar-column3">
Whishlist Cart Account
</div>
</div>
</nav>
</header>
<body>
</body>
<footer>
</footer>
</body>
</html>
CSS Code
*{
margin: 0;
padding: 0;
}
.nav-bar{
height: 30px;
text-align: center;
.nav-bar-column1{
border: 2px solid black;
height: 30px;
width: 20vw;
display: inline-block;
}
.nav-bar-column2{
border: 2px solid black;
height: 30px;
width: 50vw;
display: inline-block;
}
.nav-bar-column3{
border: 2px solid black;
height: 30px;
width: 30vw;
display: inline-block;
}