E
E
Egor Antropov2018-12-11 11:22:49
css
Egor Antropov, 2018-12-11 11:22:49

How to add a minimum page width?

In css I wrote:

html {
  padding:0;
  margin: 0;
  min-width: 1280px;
}

But when I shrink the browser window to, say, 1000 pixels, the page shrinks too, and no slider appears at the bottom.
In addition to the styles I wrote, there is bootstrap 4, maybe it does not allow you to add a minimum width?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
nvdfxx, 2018-12-11
@nvdfxx

most likely, the bootstrap has overflow-x: hidden

M
Mikhail Lyalin, 2018-12-11
@mr_jok

petukhovsky.com/responsive-min-width-fixed
https://ru.stackoverflow.com/questions/809268/%D0%...
How to set the minimum site width on mobile devices?

V
vikkar, 2018-12-11
@vikkar

Try like this:

html {
  padding:0;
  margin: 0;
  min-width: 1280px;
  overflow-x: auto;
}

If it doesn't work, then look in the styles through the object inspector. Perhaps somewhere, something is reassigning the parameters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question