Hello guys!
I am building a website for training, so I need some help.
As you can see in the picture, the nav and the h1 are not in the same line.
So, I want the - header h1 to be on the same line with the nav.
Please help me
I am building a website for training, so I need some help.
HTML:
<html>
<head>
<link href="css/style.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Raleway:400,600,300,900' rel='stylesheet' type='text/css'>
</head>
<body>
<header>
<h1>epicFooF</h1>
<nav>
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Portfolio</a>
<a href="#">Contact</a>
</nav>
</header>
</body>
</html>
Code:
header {
height: 100px;
background: #0099FF;
}
nav a {
line-height: 100px;
font-size: 30px;
font-family: 'Raleway', sans-serif;
text-decoration: none;
float: right;
color: black;
padding-left: 30px;
padding-right: 30px;
display: inline-block;
transition: .3s ease-in-out;
-webkit-transition: .3s ease-in-out;
}
nav a:hover {
transition: .3s ease-in-out;
-webkit-transition: .3s ease-in-out;
background: #00C6FF;
font-size: 33px;
}
header h1 {
line-height: 100px;
color: white;
font-family: 'Raleway', sans-serif;
font-weight: 900;
margin-left: 50px;
display: inline-block;
font-size: 50px;
}
*{
padding: 0px;
margin: 0px;
}
nav {
margin-right: 50px;
}
As you can see in the picture, the nav and the h1 are not in the same line.
So, I want the - header h1 to be on the same line with the nav.
Please help me
