As already explained by wf4, the horizontal scroll is present because of the vertical scroll. which you can solve by giving max-width: 100%
.
.box {
width: 100vw;
height: 100vh;
max-width:100%; /* added */
}
More Related Contents:
- How to remove the spaces between the form and the footer as shown below in the picture?
- How to change the cursor into a hand when a user hovers over a list item?
- What does the CSS rule “clear: both” do?
- CSS scoped custom property ignored when used to calculate variable in outer scope
- Why do the :before and :after pseudo-elements require a ‘content’ property?
- Hide text node in element, but not children
- How and where to use ::ng-deep?
- CSS transparent curved shape with two rounded sides
- Is the CSS :not() selector supposed to work with distant descendants?
- How to animate handwriting text on the web page using SVG?
- Combining :last-child with :not(.class) selector in CSS
- Using HTML data-attribute to set CSS background-image url
- What does + mean in CSS? [duplicate]
- How can I apply multiple transform declarations to one element?
- Float right and position absolute doesn’t work together
- Converting and rendering web fonts to base64 – keep original look
- Why doesn’t inset box-shadow work over images?
- text-overflow ellipsis on flex child not working [duplicate]
- Make HTML5 video poster be same size as video itself
- Why does stacking order change on webkit filter hover?
- css text gradient
- Is this possible to create 2-axis 4 color gradient in css (bilinear gradient)?
- Make CSS3 triangle with linear gradient
- Can I have different colored left and top borders in CSS?
- Safe width in pixels for printing web pages?
- Difference between flex-end and end? [duplicate]
- CSS text align justify big spaces
- CSS: equal height columns
- Purpose of *:before, *:after rule without content property
- selector for nth nested elements