I’ve been delving into the world of CSS for a couple of months now, and I’ve hit a roadblock trying to align these two divs on the same line. My logo fits perfectly on the header bar, but I can't seem to get my login button to cooperate. Any tips on how to streamline my CSS code to achieve the same result would be greatly appreciated!
@import url(http://fonts.googleapis.com/css?family=Oswald:400,700);
*{
margin: 0px;
padding: 0px;
}
.headerMenu {
background-color: #00B9ED;
height: 60px;
border-bottom: 0px;
padding-left: auto;
padding-right: auto;
width: 100%;
-webkit-box-shadow: 0px 0px 8px 0px #000000;
-moz-box-shadow: 0px 0px 8px 0px #000000;
box-shadow: 0px 0px 8px 0px #000000;
}
#logo {
margin-left: 15%;
}
#logo a {
padding-top: 3px;
height: 38px;
font-size: 35px;
font-family: 'Oswald', sans-serif;
text-decoration: none;
color: #FFFFFF;
}
#nav {
width: 100px;
height: 40px;
background-color: #00B9ED;
moz-border-radius: 15px;
-webkit-border-radius: 15px;
border: 3px solid #e5e5e5;
padding: 5px;
font-family: 'Oswald', sans-serif;
color: white;
text-align: center;
margin-left: 60%;
}
#nav p {
margin-top: 8%;
}
#nav a {
color: white;
}
#nav a:link {text-decoration:none}
#nav a:visited { text-decoration:none}
#nav a:hover {text-decoration:none; opacity: 0.6;}
<!DOCTYPE html>
<html>
<head>
<title>Daily Quotes</title>
<link rel="stylesheet" type="text/css" href="./css/style.css" />
</head>
<body>
<div class="headerMenu">
<div id="logo">
<h2><a href="#">Daily Quotes</a></h2>
</div>
<div id="nav">
<p><a href="#">login</a></p>
</div>
</div>
</body>
</html>