I would like to stylize a border for h1, but in linear gradient, going from color x to color y (or transparency).
I used pseudoclass (after), but with the gradient border I can not get it to work.
Would anyone help me?
h1:after {
content:' ';
display:block;
border:2px solid #d0d0d0;
border-radius:4px;
-webkit-border-radius:4px;
-moz-border-radius:4px;
box-shadow:inset 0 1px 1px rgba(0, 0, 0, .05);
-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .05);
-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .05);
}
<h1>Título</h1>