Hello,
I am trying to create a header with a background color and a padding
of the text.
I know that if I apply the background color to the header it will
expand 100%.
So I did the following:
<h1><span>Heade r</span></h1>
h1 {}
h1 span {
background-color: #252525;
color: #D2D2D2;
font: normal 1.2em/1.8 Verdana, Geneva, sans-serif;
letter-spacing: 0.1em;
padding: 0.8em;
}
But now I am not able to apply the top and bottom border.
How should I created this header?
Thanks,
Miguel
I am trying to create a header with a background color and a padding
of the text.
I know that if I apply the background color to the header it will
expand 100%.
So I did the following:
<h1><span>Heade r</span></h1>
h1 {}
h1 span {
background-color: #252525;
color: #D2D2D2;
font: normal 1.2em/1.8 Verdana, Geneva, sans-serif;
letter-spacing: 0.1em;
padding: 0.8em;
}
But now I am not able to apply the top and bottom border.
How should I created this header?
Thanks,
Miguel
Comment