nice header

In this example below you will see how to do a nice header with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by mikeclark, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright mikeclark ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>nice header</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div class="container">
<h4 class="block-title"><span>Director</span></h4>
  <h4 class="block-title"><span>Director</span></h4>
</div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/mikeclark/nice-header-MOwQWr */


.block-title {
    font-family: 'Roboto',sans-serif;
    font-size: 1rem;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 26px;
    border-bottom: 2px solid #222;
    width:400px;
}
.block-title {
    border-color: #a50229;
}
.block-title span
{
   background-color:#a50229;
   line-height: 1rem;
   display: inline-block;
   padding: 7px 12px 4px 12px;
   color:#f9f9f9;
}
.container
{
  
  margin:auto;
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

Comments