Edrol97
Silver Coder
I want to create a framing for a navbar on a particular page of my site similar to the one below. Currently the code I have is as follows:
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="Grauniad.css" />
<link rel="stylesheet" href="mainstyle.css" />
<title>Grauniad</title>
</head>
<body>
<div class="topnav">
<a href="Hi.html"
>Hello and welcome to another news site you didn't ask for!</a
>
</div>
<header class="navbar">
<div class="logo">
<img
style="float: right"
src="img/background/The Grauniad logo.png"
width="20%"
/>
</div>
<nav>
<div class="box">
<a class="Home" href="Hi.html">Home</a><a>|</a>
<a href="about_me.html">About</a><a>|</a> <a href="Art.html">Art</a
><a>|</a> <a href="cv.html">Work</a><a>|</a>
<a href="Games.html">Play</a><a>|</a>
</div>
</nav>
</header>
</body>
</html>
CSS:
body {
width: 100%;
height: 100%;
cursor: url(img/background/cursors/Mouse%20cursor);
}
@font-face {
font-family: Guardian;
src: url(Fonts/Guardian-Egyp-Web-Regular.ttf);
}
.navbar {
background-color: #062962;
width: 100%;
height: 150px;
padding-left: 2%;
}
.navbar a {
color: white;
font-family: Guardian;
font-weight: 900;
font-size: 5dvh;
padding: 20px;
float: left;
}
.navbar .Home a {
padding-left: 40px;
}
.topnav {
background-color: #0b1e47;
width: 100%;
top: 0%;
}
.topnav a {
color: white;
font-family: Guardian;
font-size: 4dvh;
font-weight: 900;
}
.box {
width: 80%;
height: 80%;
border: 3px white;
top: 0;
right: 0;
background-color: #062962;
}