I'm having trouble getting the list to float to the right inside a div. Here is the HTML code:
<div class="topdiv">
<header>MakeItWork</header>
<ul class="navigation">
<li>Home</li>
<li>Shop</li>
<li>Contact</li>
</ul>
</div>
Below is the CSS I am using:
.topdiv{
width: 100%;
overflow: hidden;
background-color: black;
color: white;
display: flex;
}
.topdiv header{
margin-top: auto;
margin-bottom: auto;
font-size: xxx-large;
margin-left: 5%;
}
.navigation{
text-decoration: none;
margin: none;
padding: none;
float: right;
}
.navigation li{
padding: 10px;
}
Edit: My goal is to have the header text (MakeItWork) on the left side of the page and the list (with items like Home, Shop, and Contact) on the right side of the page. You can see an example in this picture.