CodePen

HTML

            
              <header>
    <h1>Headline</h1>
  <br/>
    <h1>A much longer headline</h1>
  <br/>
    <h1 class="smaller">Smaller text headline</h1>
</header>
            
          
!
via HTML Inspector

CSS

            
              body {
  background: url(http://i46.tinypic.com/2lbko0m.png);
}

header {
  width: 70%;
  height: 250px;
  margin: 20px auto 0;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 8px 8px 10px rgba(0, 0, 0, 0.7);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  border-radius: 10px;
  text-align: center;
  overflow: hidden;
}

.smaller {
  font-size: 20px;
}

h1 {
  position: relative;
  display: inline-block;
  xwidth: 40%;
  margin: 20px 0;
  font-size: 60px;
  font-weight: 800;
  font-family: Arial, sans-serif;
  color: #ccc;
}

h1:before, h1:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 0.75em;
  top: 12%;
  left: -510px;
  background-color: orange;
  -webkit-transform: skew(15deg, 0deg);
  -moz-transform: skew(15deg, 0deg);
  -ms-transform: skew(15deg, 0deg);
  -o-transform: skew(15deg, 0deg);
  transform: skew(15deg, 0deg);
}

h1:after {
  left: auto;
  right: -510px;
}


            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................