Latest solutions
Latest comments
- @terrence-ou#react#react-router#tailwind-css#typescript@llleixx
You set 100vw, but with the vertical scroll bar, there is horizontal scroll bar.
In my opinion, set 100vw is not a good idea.
And it seems that your tablet version doesn't work right because you set overflow: hidden
- @llleixx@llleixx
I can solve it by:
html { height: 100%; body { display: flex; flex-direction: column; min-height: 95vh; } header, main { flex: 1; }
But I want to know why I set
min-height: 100vh;
, there is always scroll bar?