Css style positioning problem

White div:
Scroll bar can be scrolled horizontally (1200px with content width fixed, some screens will be smaller than 1200px)
not to scroll vertically (content length is longer than screen length)
requirement: you can only use css

.
Apr.12,2022

is that what you want?
https://codepen.io/w3cbest/fu...


paste down and you should be able to test it. Or open the URL to view the effect https://codepen.io/luyilun/pr...

<div class="content"></div>
<silder class="silder">
      <div class="white"></div>
</silder>

< / div >

.con {

width:1200px;
height: 1500px;
margin: 0 auto;
display: flex;
flex-direction: row;
.content{
  width: 800px;
  hieght: 100%;
  background: green;
}
.silder{
  width: 400px;
  height: 100%;
  background: blue;
  position: relative;
  .white{
    width:200px;
    height: 200px;
    background: white;
    position: sticky;
    top: 10px;
    margin-left: 100px;
  }
}

}

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a9a2-2ba7c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a9a2-2ba7c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?