I'm trying to create a banner with a background color of gray, for example. I want this banner to include the logo and the menu options.
I figure that I must have three div's, but when I put the logo and the menu options in it, I get it as three separate things, versus two things that are in one container.
Also, if someone would be so kind to critique my code, I would appreciate it so I improve.
Thank you in advance.
div.header_container {
font-family: tamarillo-jf, sans-serif;
font-style: normal;
font-weight: 400;
border: solid blue 10px;
}
div.logo_container {
border: solid red;
float: left;
}
h1.logo {
padding: 10px;
margin: 0;
color: forestgreen;
font-family: tamarillo-jf, sans-serif;
font-style: normal;
font-weight: 400;
}
div.nav_container {
border: solid pink;
float: right;
overflow: auto;
margin: 0;
}
li.option {
display: inline;
padding: 10px;
list-style-type: none;
font-size: 25px;
margin: 0;
}
a {
text-decoration: none;
color: forestgreen;
}
<!DOCTYPE HTML>
<html>
<head>
<title>Home | Business</title>
<link rel = "stylesheet" href = "style.css">
<!--fonts-->
<script src="https://use.typekit.net/yhm2vpr.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
</head>
<body class = "home_page">
<!-- "banner" with logo and navigation options -->
<div class = "header_container">
<div class = "logo_container">
<h1 class="logo">Business Name</h1>
</div>
<div class = "nav_container">
<ul class = "nav_ops">
<li class = "option"><a href="#about us">about us</a></li>
<li class = "option"><a href="#classes">classes</a></li>
<li class = "option"><a href="#services">services</a></li>
<li class = "option"><a href="#get involved">get involved</a></li>
<li class = "option"><a href="#contact us">contact us</a></li>
<li class = "option"><a href="#donate">donate</a></li>
</ul>
</div>
</div>
<p>Hello, there!</p>
</body>
</html>