css how to stop screen from left and right

Solutions on MaxInterview for css how to stop screen from left and right by the best coders in the world

showing results for - "css how to stop screen from left and right"
Juan David
28 Jul 2020
1/* The problem */
2.off-screen {
3  position: absolute;
4  right: -50px;
5  
6  width: 100px;
7  height: 100px;
8  
9  background-color: red;
10}
11
12/* The solution */
13body {
14  overflow-x: hidden;
15}
Andrea
02 Feb 2018
1<div class="off-screen"></div>