DISABLE the Horizontal Scroll
Try adding this to your CSS
html, body {
max-width: 100%;
overflow-x: hidden;
}
How to disable horizontal scrolling in html for the iphone
If CSS is acceptable for you instead of HTML:
html, body {
max-width: 100% !important;
overflow-x: hidden !important;
}
Remove unwanted horizontal scroll (Where is the horizontal scroll coming from?)
the easiest answer is to put overflow-x:none
in your App.css
.
Disable horizontal scrolling without overflow hidden
Simply remove all the width you specified as this is the default behavior of block element to take 100% of width. And you need to pay attention as 100vh is not equal to 100%. The first one include the calculation of scrollbar :
* { margin: 0; padding: 0; box-sizing: border-box; max-width: 100vw; font-family: 'Montserrat', sans-serif; font-weight: 400;}
#nav { height: 100px; padding: 0 2vw; font-weight: 700;}
.p5_container { height: calc(100vh - 100px - 150px); background-color: beige;}
.arrow { height: 150px; background-color: #6195B2;}
<body> <header id="nav"> <ul> <li><a href="#">Circle</a></li> <li><a href="#">Square</a></li> <li><a href="#">Line</a></li> </ul> </header>
<div id="p5_banner" class="p5_container"></div>
<div class="arrow"></div> <div id="p5_circle" class="p5_container"></div>
<div class="arrow"></div> <div id="p5_square" class="p5_container"></div>
<div class="arrow"></div> <div id="p5_line" class="p5_container"></div></body>
Related Topics
What Is the HTML For="" Attribute in <Label>
Is Cross-Origin Postmessage Broken in Ie10
Uppercase or Lowercase Doctype
Allow Specific Tag to Override Overflow:Hidden
What Is the ::Content/::Slotted Pseudo-Element and How Does It Work
Setting a Width and Height on an a Tag
How to Prevent Line Break at Hyphens in All Browsers
Internet Explorer 11 Disable "Display Intranet Sites in Compatibility View" via Meta Tag Not Working
Low Latency (< 2S) Live Video Streaming HTML5 Solutions
How to Give the Background-Image Path in CSS
Using HTML in Jquery UI Autocomplete
Bootstrap 3: Push/Pull Columns Only on Smaller Screen Sizes
How to Use Non Existing CSS Classes
Is It Correct to Use Alt Tag for an Anchor Link
How to Make the Whole Area of a List Item in My Navigation Bar, Clickable as a Link