JSFiddle - React, Tailwind, and code Playground
by RedSniper
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
<title>Murrengan</title>
</head>
<body>
<div class="header">
<div class="nav">
<div class="logo">
<img src="img/logo.png" alt="logo">
</div>
<div class="all-arrows">
<div class="arrows">
<img src="img/arrows.png" alt="arrows">
</div>
</div>
<div class="log-in">
<img src="img/out.png" alt="out">
<a href="#" class="text_log-in">Войти</a>
</div>
<div class="sign-in">
<a href="#" class="text_sign-in">Зарегистрироваться</a>
</div>
</div>
</div>
CSS
* {
box-sizing: border-box;
}
body {
background: #5E35B1;
margin: 0;
padding: 0;
}
.nav {
display: flex;
justify-content: space-around;
align-items:center;
flex-direction:row;
max-width: 1160px;
margin: 0 auto;
height: 80px;
background: #6F3ADB;
}
.logo{
}
.all-arrows {
float:right;
}
.sign-in {
display: flex;
justify-content: flex-end;
flex-direction: column;
width: 180px;
height: 40px;
left: 940px;
top: 23px;
padding: 12.5px 22px;
background: #FDD835;
}
.text_sign-in {
color: #6F3ADB;
font-family: Montserrat;
font-style: normal;
font-weight: bold;
font-size: 12px;
line-height: 15px;
text-align: center;
}
.log-in img{
text-align: center;
align-items: center;
}
.text_log-in {
color: #FFFFFF;
font-family: Montserrat;
font-weight: bold;
font-size: 12px;
text-align: center;
}
a {
text-decoration: none;
}
.log-in{
}