D
D
Dr_Gonzo2018-02-22 10:52:37
css
Dr_Gonzo, 2018-02-22 10:52:37

How to position div under a in div?

Essence of a question following: There is div in which tags settle down . Now everything is displayed in one line. It is necessary that the tag be the only one on the line, the rest must be under it and in the line (one after another). Here's what it looks like in html:<a>, <div>, <div>, <div>, <div><a><div><а>

<div class="main_div">
<a href="/en/tags/node" class="first_a">
<div class="slave_div_1">
<div class="slave_div_2">
<div class="slave_div_3">
<div class="slave_div_4">
</div>

Here's how it's displayed on the page: Here's how it should be displayed:
<a> <div_1> <div_2> <div_3> <div_4>
<a>
<div_1> <div_2> <div_3> <div_4>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
kreotech, 2018-02-22
@kreotech

Arrange so

D
Dmitry Nebov, 2018-02-22
@stttroke_media

CSS:

.first_a {
   display: block;
}

E
Evgeny Kuzovlev, 2018-02-22
@Kiyoshi

Add a line break after a

<div class="main_div">
<a href="/en/tags/node" class="first_a"> <br>
<div class="slave_div_1">
<div class="slave_div_2">
<div class="slave_div_3">
<div class="slave_div_4">
</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question