CSS: css how to stop screen from left and right Example

By

CSS Example: This is the "css how to stop screen from left and right" Example. compiled from many sources on the internet by SimpleTutorials.org

css how to stop screen from left and right

css how to stop screen from left and right

/* The problem */
.off-screen {
  position: absolute;
  right: -50px;
  
  width: 100px;
  height: 100px;
  
  background-color: red;
}

/* The solution */
body {
  overflow-x: hidden;
}



* Summary: This "css how to stop screen from left and right" CSS Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others