S
S
Secret732018-04-11 13:00:44
css
Secret73, 2018-04-11 13:00:44

How to properly make a div a link in bootsrap4?

Hello. How to make a block a link in bootstrap4 correctly, with such a structure? Googling, I found different options:
1. hang onclick on a div
2. Make a {display: block} and stuff everything into it
. Which option will be correct and valid? Maybe there are some other options?

<div class="col-sm-4 left site">
          <div class="">
            <div class="show">
              <div class="title">Заголовок</div>
              Описание
            </div>
          </div>
        </div>

https://jsfiddle.net/yokvs52L/3/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lone Ice, 2018-04-11
@Secret73

will be correct and valid

using the a tag

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question