Skip to content

Instantly share code, notes, and snippets.

@gddabe
Created September 14, 2020 05:46
Show Gist options
  • Save gddabe/77b8185cb3f7adfb9b80f9a41f580024 to your computer and use it in GitHub Desktop.
Save gddabe/77b8185cb3f7adfb9b80f9a41f580024 to your computer and use it in GitHub Desktop.
html fade header line
<div class="fade-line" />
.fade-line {
height: 1px;
background-color: #E6E6E6;
width: 66.0em;
margin: 0 auto;
background-image: linear-gradient(left , white 2%, #E6E6E6 50%, white 98%);
background-image: -o-linear-gradient(left , white 2%, #E6E6E6 50%, white 98%);
background-image: -moz-linear-gradient(left , white 2%, #E6E6E6 50%, white 98%);
background-image: -webkit-linear-gradient(left , white 2%, #E6E6E6 50%, white 98%);
background-image: -ms-linear-gradient(left , white 2%, #E6E6E6 50%, white 98%);
background-image: -webkit-gradient( linear, left bottom, right bottom, color-stop(0.02, white), color-stop(0.5, gray), color-stop(0.98, white) );
-webkit-print-color-adjust: exact; // to allow background appear in printed pdf
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment