D
D
Dmitry Gormash2015-10-24 17:34:46
css
Dmitry Gormash, 2015-10-24 17:34:46

How to make such headers?

Good afternoon. Interested in how to make such a header, which has horizontal lines drawn on the sides. Example(Figure 1)
4e86952babad458195380385b641a3d1.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
Kirill, 2015-10-24
@kanonir1886

In my opinion, the easiest option is through pseudo-elements (:before :after).
Something like this: codepen.io/GoooodBoy/pen/wKmBKN

M
Maxim Timofeev, 2015-10-24
@webinar

Options:
1. Put a picture or two on the background.
1.1. Container for a header with a stripe on the background, and the header overlaps the background and has width:auto; and margin:auto;
2. Table 3 columns two rows, middle rowspan-2 at the top left and bottom right top border

D
Daniil Chepenko, 2015-10-24
@zkid

what will happen to the title when the screen is reduced? Lines stay or narrow just

I
Igor Vorotnev, 2015-10-24
@HeadOnFire

If it’s completely correct, and to make it rubbery, use the :before, :after and flexbox pseudo-elements.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question