I am facing some issues with my navigation bar. I am unable to adjust its size or position it at the center of the page. Additionally, despite setting the body width and height to 100vw and 100vh respectively, I am able to scroll both vertically and horizontally. Can anyone provide assistance?
My Code:
body {
background-color: black;
width: 100vw;
height: 100vh;
display: inline block;
}
h1 {
font-family: 'Anton', sans-serif;
color: white;
font-size: 108px;
text-align: center;
}
div {
width: 2000px;
height: 500px;
display: inline block;
}
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="KinoWorld homepage" content="html/css file">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Anton" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>Stuff</h1>
<div class="search">
<input type="text" placeholder="Search..">
</div>
</body>
</html>