JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900'
rel='stylesheet' type='text/css'>
<link href="style.css" rel="stylesheet" type="text/css" media="all" />
<title>МОПС</title>
</head>
<body>
<body>
<header>
<div class="wrap">
<div class="header">
<!--------start-logo------>
<div class="logo">
<a href="index.html"><img src="https://myrusakov.ru/images/articles/html_coding_logo.png" alt="" left:20px /></a>
</div>
<!--------end-logo--------->
<!----start-nav-------->
<div class="nav">
<ul>
<li><a href="#home">Главная</a></li>
<li class="active"><a href="#portfolio">Портфолио</a></li>
<li><a href="#about">Обо мне</a></li>
<li><a href="#contact">Контакт</a></li>
</ul>
</div>
<!-----end-nav-------->
<div class="clear"> </div>
</div>
</div>
</header>
<div>
<section class="image_bg">
<div class="wrap">
<!---start-da-slider----->
<div class="text">
<h2><span>Трудно быть</span> "милым"</h2>
<p>Каждый день я просыпаюсь с одной единственной мыслью о том, что как трудно быть милым. Но не подаю вида, что мне надоели ваши "поглаживания" и "сюсюкания".</p>
<a href="#" class="da-butt">Узнайте больше</a>
<a href="#portfolio" class="scroll"><span class="butt-img"> </span> </a>
</div>
<!---//End-da-slider----->
</div>
</section>
</div>
<!--start portfolio------>
<div class="wrap" id="portfolio">
<div class="main">
<!-- start gallery -->
<div class="gallery1">
<!---start-content----->
<div class="gallery">
<div class="clear"> </div>
<div class="container">
<h2>Портфолио</h2>
<p>Много сплю и ем, но я гарантирую, что вы полюбите меня...
CSS
.body {
font-family: 'Lato', sans-serif;
font-size: 100%;
background: #ffffff;
}
.wrap
{
width: 80%;
margin: 0 auto;
}
/* start header */
.header{
padding: 4.3em 0em;
margin-top: -4.80em;
}
.logo{
float: left;
position: left 90px;
}
.logo a {
display: block;
}
/******start-nav********/
.nav {
float: right;
margin-top: 0.82em;
}
.nav > ul > li {
display:inline-block;
}
.nav > ul > li.active a{
color: #ffffff;
background: #d0a5a5;
}
.nav > ul > li > a {
font-family: 'Lato', sans-serif;
text-transform: uppercase;
display: block;
font-size: 1em;
color: #444;
padding: 1.5em 1em;
-webkit-transition: 0.9s;
-moz-transition: 0.9s;
-o-transition: 0.9s;
transition: 0.9s;
}
.nav > ul > li > a:hover {
color: #ffffff;
background: #d0a5a5;
}
.image_bg{
background: url(https://myrusakov.ru/images/articles/html_coding_banner.jpg) no-repeat;
background-size: 100% 100%;
}
.text {
padding: 20% 0%;
}
.text h2 {
color: #FFF;
font-size: 3em;
font-weight: 700;
z-index: 10;
text-align: center;
position: relative; /* относительное позиционирование */
margin-top: -140px;
}
.text h2 span {
font-size: 1em;
font-weight: 300;
}
.text p {
color: #FFF;
font-size: 1.2em;
text-align: center;
margin: 1.5em auto;
width: 77%;
font-weight: 200;
line-height: 1.4em;
}
.text .da-butt {
background-color: #a97b7b;
display: block;
color: #FFF;
font-size: 1em;
text-transform: uppercase;
margin: 0 auto;
width: 10%;
text-align: center;
padding: 1em 2em;
}
.da-butt {
position: absolute; /* абсолютное позиционирование */
left: 750px; top: 370px; /* отступы от краев браузера */
}
.text .da-butt:hover
{
background:#d0a5a5;
}
.butt-img{
width: 50px;
height: 50px;
display: block;
margin: 2em auto 1em;
background: url(https://myrusakov.ru/images/articles/html_coding_buttonimg.png);
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-ms-transition: all...