HTML/CSS

CSS:-

ul {
  list-style-typenone;
  margin0;
  padding0;
  overflowhidden;
  background-color#333;
}

li a.active
{
  floatleft;
}

li a {
  displayblock;
  colorwhite;
  text-aligncenter;
  padding14px 16px;
  text-decorationnone;
}

li a:hover:not(.active
{
  background-color#111;
}

li a:not(.active)
{
    floatright;     
}

.active 
{
  background-color#111;
  font-size:20px;
}

bodyhtml {
    height100%;
    margin0;
    font-familyArialHelveticasans-serif;
  }
  
  .hero-image {
    background-imagelinear-gradient(rgba(0000.5), rgba(0000.5)), url("photographer.jpg");
    height50%;
    background-positioncenter;
    background-repeatno-repeat;
    background-sizecover;
    positionrelative;
  }
  
  .hero-text {
    text-aligncenter;
    positionabsolute;
    top50%;
    left50%;
    transformtranslate(-50%-50%);
    colorwhite;
  }
  
  .hero-text button {
    bordernone;
    outline0;
    displayinline-block;
    padding10px 25px;
    colorblack;
    background-color#ddd;
    text-aligncenter;
    cursorpointer;
  }
  
  .hero-text button:hover {
    background-color#555;
    colorwhite;
  }

HTML:-

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <ul>
        <li><a class="active" href="#home">Insight</a></li>
        <li><a href="#news">how it works</a></li>
        <li><a href="#contact">Sign Up</a></li>
        <li><a href="#about">Login</a></li>
    </ul>

    <div class="hero-image">
        <div class="hero-text">
          <h1 style="font-size:50px">Don't Ignore Your Dreams</h1>
          <p></p>
          <button>See How it works</button>
          <button>Join Us</button>
        </div>
    </div>
</body>
</html>

Comments