C
C
Chesterfield252021-06-16 07:00:26
HTML
Chesterfield25, 2021-06-16 07:00:26

How to stretch a container?

How to stretch a container to full screen width and height?

If you just take an empty container , it will not be visible until it is filled with content. And how to stretch it to full width and height without content?

<div class="container-fluid bg-dark"> </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-06-16
@yarkov

100vw width
100vh height
Why would you want a div with no content?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question