I would like to put a black line to the left and right side of a heading, so it looks like:
-------------------- Beautiful text ---------------------------
content bla bla blab content bla bla blab content bla
content bla bla blab content bla bla blab content bla
content bla bla blab content bla bla blab content bla
content bla bla blab content bla bla blab content bla
Hoping you know what I mean.
What's the best way to do this? I can achieve this by giving the h1 a negative top-position and a white background while setting the content's div with a black border on top. So the heading (with a white background) overlays my black border.
But I'm sure there's a nicer way than working with negative positioning.