Jump to content
  • 0

Перенос лого по центру без медиа запросов.


federal24
 Share

Question

Здрасти, подскажите как сделать чтобы переносился логотип (типа для мобильной верссии сайта) по центру, без использования медиа запросов.

Вот весь код штмл:

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css">
	<title>Document</title>
</head>
<body>
	<header>
		<div class="wrapper">
					<div class="logo">
						<a href="#"><img src="img/MobileApp.png"></a>
						<p class="desk">Your Mobile App Slogan</p>
					</div>
			<div class="menu">
				<ul>
					<li><a href="#">Home</a></li>
					<li><a href="#">Features</a></li>
					<li><a href="#">Support</a></li>
					<li><a href="#">Download</a></li>
					<li><a href="#">Contact</a></li>
				</ul>
			</div>
		</div>	
	</header>
</body>
</html>

цсс:

*{
	margin: 0;
	padding: 0;
}
body{
	background-color: #101010;
}
header{
	max-width: 1200px;
	background-color: #fff;
	margin: 0 auto;

}

.wrapper{
	height: 138px;
	max-width: 950px;
	margin: 0 105px 0 125px;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: center;
	background-color: #ae1;
}
.menu{
	background-color: #e1a;

}
.menu ul li{
	list-style: none;
	display: inline-block;
	padding: 0 20px;
}


.menu ul li a{
	
	font-size: 14px;
}
.menu ul{
	text-decoration: none;
	color: #0c9bdd;
	
}

.desk{
	font-size: 11px;
}
.logo{
	background-color: #aaa;


}
img{

}

 

Если поставить justify-content: space-around, проблема решается, но появляются отступы с лева и с права.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy