Jump to content
  • 0

проблема с отступами


Daniyar
 Share

Question

как убрать этот отступ между верхним и нижним

<head>
	<meta charset="UTF-8">
	<title>Iphone</title>
	<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
	<div class="conteiner clearfix">
		<header>
			<nav>
				<div class="logo">Smallapps</div>
				<ul class="menu">
					<li>
						<a href="#">Home</a>
					</li>
					<li>
						<a href="#">Features</a>
					</li>
					<li>
						<a href="#">Screenshot</a>
					</li>
					<li>
						<a href="#">Gallery</a>
					</li>
				</ul>
				</nav>
				<div class="phone">
					<img src="img/phone.png"><div class="tel">800-123-456</div>
				</div>
				<div class="mail">
					<img src="img/mail.png"><div class="maill"><a href="#">smallapps@gmail.com</a></div>
				</div>
		</header>
	</div>
	<section class="slider">
		<div class="conteiner">
			
			<h1 class="perfect">Perfect app landing page</h1>
			<h2 class="duis">Duis bibendum diam</h2>
			<p>Donec elementum mollis id aliquet.Etiam eleifend urna eget sem sagittis feugiat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas</p>
			<a class="button" href="#">Download</a>
			<img class="arm" src="img/arm.png">
			<img class="iphone" src="img/iphone.png">
			</div>
			</section>
			<div class="products"></div>
</body>
</html>
body{margin:0;
	font-family: 'Montserrat', sans-serif;
}
@import url('https://fonts.googleapis.com/css?family=Montserrat');
.conteiner{
	width: 1150px;
	margin: 0 auto;
}
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}
.logo{
	font-weight: bold;
	font-family: 'Montserrat', sans-serif;
	font-size: 30px;
	color:#56575b;
	float: left;
	margin-right: 30px;
	margin-top: 40px;
}

nav{
	float: left;
}
.menu{
	padding: 0;
	margin: 0;
	display:inline-block; 
	margin-top: 54px;
}
.menu li{
	float: left;
	display: block;
	margin-right: 31px;
	font-size: 14px;
}
.menu li a{
	color:#56575b;
	text-decoration: none;
}
.phone{
	float: right;
	display: inline-block;
}
.phone {
	float: right;
	}
.phone img{
	margin-right: 10px;
	float: left;
	margin-top: 56px;
}
.tel{
	font-size: 15px;
	float: right;
	margin-top: 56px;
	color: #56575b;
}
.mail{
	float: left;
	margin-left: 310px;
	}
.maill{
	float: right;
	font-size: 15px;
	margin-left: 10px;
	margin-top: 56px;
}
.maill a {
	text-decoration: none;
	color:#56575b;
}
.mail img{
	margin-top: 56px;
}
.slider{
	background: url(img/bg-slider.png) no-repeat;
	height: 725px;
	padding-top: 180px;
	margin-top: 35px;

}


.perfect{
	color:#fff;
	font-size: 36px;
	margin-bottom: 0px;

	
}
.duis{
	color:#fff;
	font-weight: ;
	font-size: 36px;
	margin-top: 2px;
	
	
}
.slider p{
	font-size: 14px;
	color:#8db9c4;
	display: block;
	width: 470px;
	margin-top: 45px;
}
.button{
	border:solid;
	border-color: #8db9c4;
	text-decoration: none;
	color: #fff;
	padding: 20px 0;
	display: block;
	width: 230px;
	border-radius: 50px;
	text-align: center;
	text-transform: uppercase;
	margin-top: 50px;
}
.arm{
	position: absolute;
	top:230px;
	left: 390px;
}
.iphone{
	position: absolute;
	top: 298px;
	left: 850px;
}
.products{
	height: 805px;
	background-color:red;
	
}

 

Безымянный.jpg

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