I
I
Ivan Zheludkov2015-10-02 16:38:12
css
Ivan Zheludkov, 2015-10-02 16:38:12

How to make h4 appear on top of hr or div?

Link to Codepen
I need to lay out a header like this, with a line to the end of the block on each edge. And no matter how I tried to make this feature behind the title, so that the background of the title overlapped it, nothing came of it.
12c4ecb63bc44ed598bc57ee71d9148a.png
Tried z-index. It works only if you set a negative value, but then the line disappears altogether for the entire layout. And I don’t want to customize the entire layout for this.
I tried to replace hr with div, there was no sense, it behaves exactly the same.
Help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey B., 2015-10-02
@webvany

codepen.io/anon/pen/epvdLZ

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question