2021年3月23日星期二

How do I add a scrollbar

It would let me post my code.

*{      margin: 0%;      padding: 0%;  }  .platform-web{      --primary-background:rgb(12, 119, 164);      --secondary-background:rgb(36, 38, 38);        --text-color:rgba(225, 225, 225, 0.881);  }  body{      overflow: hidden;  }  @font-face {    font-family: 'Discord-logo';    font-weight: 700;    src: url("https://raw.githubusercontent.com/powercord-org/powercord-backend/my-awesome-branch/web/src/assets/discord-font.otf") format("opentype");  }    .navbar{      position: fixed;      top:0px;      left:0px;      width:100%;      height:40px;      background: var(--secondary-background);      color: var(--text-color);  }  .sites{     position: absolute;     right:10px;     top:13px;     font-family: Discord-logo;  }  .logo{      font-size: 2em;      left:5px;      position: relative;      width:fit-content;  }    .main-content{      width: 100%;      height:calc(100% - 40px);      margin-top:40px;      display: flex;  }  .scrollbar-1{      width: 100%;  }
<!DOCTYPE html>  <head>    <link rel="stylesheet" type="text/css" href="style.css">  </head>  <body class="platform-web dark-theme">      <div id="appmount">          <nav class="navbar">              <div>                  <p class="logo">Doggybootsy</p>              </div>              <div>                  <a class="sites">Discord</a>              </div>          </nav>          <div class="main-content">              <div class="scrollbar-1" style="overflow: hidden scroll; padding-right: 0px;">                  <div class="content">                    </div>              </div>          </div>      </div>  </body>
https://stackoverflow.com/questions/66773597/how-do-i-add-a-scrollbar March 24, 2021 at 09:39AM

没有评论:

发表评论