5568 sujets

Sémantique web et HTML

bonjour j'aimerais aligner mon logo avec ma navigation mais j'y arrive pas
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>Genoa</title>
	<link rel="stylesheet" type="text/css" href="assets/css/reset.css">
	<link rel="stylesheet" type="text/css" href="assets/css/style.css">
</head>
<body>
	<div class="body">
		<div class="header">
			<div id="logo">
				<a href="http://jahangirseven.com/genoa/">
					<img src="assets/img/logohigh.png" alt="Genoa">
				</a>
			</div>

			<nav class="menu">
				<ul>
					<li>
						<a href="http://jahangirseven.com/genoa/">
							Home
						</a>
					</li>
					<li>
						<a href="http://jahangirseven.com/genoa/sidebar-right/">
							Blog
						</a>
					</li>
					<li>
						<a href="http://jahangirseven.com/genoa/shop/">
							Shop
						</a>
					</li>
					<li>
						<a href="https://themeforest.net/">
							Contact
						</a>
					</li>
				    <li>
						<a href=""><img src="assets/img/magnifying-glass.png"></a>
					</li>
					<li>
						<a href="http://jahangirseven.com/genoa/cart/"><img src="assets/img/shopping-cart_icon-icons.com_56125.png"></a>
					</li>
					<li>
						<a href=""><img src="assets/img/filled_rounded_menu-512.png"></a>
					</li>
					<li>
						<a href="#" class="navbutton">Download</a>
					</li>
				</ul>
			</nav>

		    </div>


body{
    margin: 0 auto;
    padding:0;
    font-size:16px;
    font-family: "Poppins", Sans-serif;
    overflow-x:hidden;
    line-height: 1;
    background : #f6f5fb;
    background: url(../img/genoa-demo3-banner6002.png);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 1500px;
}

.body{
	max-width: 1120px;
	margin-right: auto;
	margin-left: auto;
}
#logo{
    max-width:17%;
    height:100%; 
}
#logo {
    display: inline-block;
    
}

#logo img{
    max-width:100%;
    max-height:100%;
    vertical-align: top;
    

}
.header nav ul {
    list-style-type: none;
}
.header nav li {
    display: inline-block;
    width: 50px;
    height:50px;
    margin: 0px;
    padding:0px;
    padding-bottom: 80px;
    display: inline-block;    
    vertical-align: top;
    font-size: 15px;

}

.header nav li a {
    text-decoration: none;
    color: white;

}

.header nav img {
    width: 23px;
}

.header nav {
    text-align:right;
}

.navbutton {
    width: 202%;
    font-size: 14px;
    color: #ffffff;
    background-color: #FF7542;
    padding: 15px 0px 17px 0px;
    text-decoration: none;
    border-radius: 23px;
    box-shadow: none;
    margin-right: 80px;
    justify-content: center;
}
.navbutton{
    position: relative;
    box-sizing: border-box;
    display: flex;
    margin-top: -13px;
}
Bonjour,

vous pouvez essayer de mettre le .header en display flex avec un align-items center

Bien à vous