Answers for "css how to stop screen from left and right"

CSS
0

css how to stop screen from left and right

<div class="off-screen"></div>
Posted by: Guest on June-04-2020
0

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;
}
Posted by: Guest on June-04-2020

Code answers related to "css how to stop screen from left and right"

Browse Popular Code Answers by Language