Answers for "mobile scrolling hide overflow"

CSS
1

how to diagnose horizontal scroll that will not go away on mobile site

body {
    overflow-x: hidden;
    width: 100%;
}

<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
Posted by: Guest on August-26-2020
0

horizontal scroll only css mobile

.images {
    display: flex;
    align-items:center;
    background-color: #eee;
    padding: 1rem;
    overflow-x: scroll;
}

.images > div {
    flex: none;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.images img {
    max-width:100%;
    width: 100%;
}

@media (min-width: 960px) {

  .images {
     overflow-x: visible;
  }

  .images > div {
    flex-basis: 0;
    flex-grow: 1;
   }
}
Posted by: Guest on January-28-2021

Browse Popular Code Answers by Language