HTML HTML5

by - December 14, 2019

HTML !


<!doctype html>
<html>
<head>
                           <title>website</title>
   <link rel="stylesheet" type="text/css" href="css/style.css">  
</head>
<body>
<header>
                  <div class="main">
  <div class="logo">
  <img src="logo.png">
  </div>
<ul>
     <li><a class="active" href="#">home</a></li>
     <li><a href="#">contact</a></li>
     <li><a href="#">mobile</a></li>
     <li><a href="#">about</a></li>
     <li><a href="#">hire me</a></li>
</ul>
</div>
<div class="title">
<h1>motivational</h1>
</div>
<div class="button">
<a href="#" class="btn">watch</a>
<a href="#" class="btn">play more</a>
</div>
 
</header>
</body>
</html>

*{
margin: 0;
padding: 0;
font-family: century gothic;
}
header{
background-image:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)),url(../bg.jpg);
height: 100vh;
background-position: center;
background-size: cover;
}
ul{
list-style-type: none;
float: right;
margin-top: 25px;
}
ul li{
display: inline-block;
}
ul li a{
text-decoration: none;
color: #fff;
padding: 5px 20px;
border: 1px solid  #fff;
transition: 0.6s ease;
}
.main{
max-width: 1200px;
margin: auto;
}
ul li a:hover{
background-color: #fff;
color: #000;
}

.logo img{
float: left;
width: 150px;
height: auto;
}
ul li a.active{
background-color: #fff;
color: #000;
}
.title{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.title h1{
color: #Fff;
font-size: 75px;
}
.button{
position: absolute;
top: 62%;
left: 50%;
transform: translate(-50%,-50%);
}
.btn{
text-decoration: none;
color: #fff;
padding: 10px 30px;
border: 1px solid  #fff;
transition: 0.6s ease;
}
.btn:hover{
font-size: 30px;
background-color: #fff;
color: #000;
}

You May Also Like

0 Reviews