Jump to content
  • 0

Размещение обьекта


kaplunA
 Share

Question

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

Spoiler

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link href="Style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div class="wrapper">
		<div class="header">
			<div class="headermenu">
				<span class="logo">YokNgalam</span>
				<ul>
				<li><a href="#">Home</a></li>
				<li><a href="#">Destination</a></li>
				<li><a href="#">Lttinary</a></li>
				<li><a href="#">Review</a></li>
				<li><a href="#">Contact</a></li>
				</ul>
				<img src="img/Avatar.png" width="48" height="48" class="avatar">
			</div>
		</div>
		<div class="content"></div>
		<div calss="footer"></div>
	</div>
</body>
</html>

body{
	background-color: #75DED9;
	font-size: 16px;
}
.headermenu {
	margin-top: 50px;
}

.logo{
	font-size: 20px;
	margin-left: 150px;
	color: #fff;
	margin-top: 14px;
	float: left;
}
.avatar{
	padding-right: 50px;
	float: right;
	overflow: hidden;
}
ul {
	
	padding: 0;
	list-style: none; 
	margin: 0 0;
	float: right;
}
li {
	float: left;
}
a {
	display: block;
	padding: 1em;
	color: #fff;	
	text-decoration: none;
	margin-right: 30px;
	border: 2px solid transparent;
	border-radius: 50px;
}
a:hover {
	border: 2px solid #fff;
	border-radius: 50px;
}
	

 

прошу прощения разобрался)

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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