H
H
html_newbie2021-09-23 11:49:02
Bootstrap
html_newbie, 2021-09-23 11:49:02

Is it possible to do this without repeating one of the blocks?

I have code
<div class="container-fluid list-group-item-secondary">
  <div class="row">
    <div class="col text-center d-none d-sm-block">
      Текстовый заголовок
    </div>
    <div class="col-auto ms-auto text-center">
      <a href="#">Ссылка 1</a>
    </div>
    <div class="col-auto text-center">
      <a href="#">Ссылка 2</a>
    </div>
    <div class="col-auto text-center">
      <a href="#">Ссылка 3</a>
    </div>
  </div>
  <div class="row d-block d-sm-none">
    <div class="col text-center">
      Текстовый заголовок
    </div>
  </div>
</div>

which implements this behavior
614c3f738108c696839384.png


Is it possible to change the code so that the "Text title" block does not repeat, but moves with some Bootstrap (version 5.1) parameters?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-09-23
@html_newbie

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question