“poziomy pasek przewijania” Kod odpowiedzi

Poziomy zwój

.scrolling-wrapper-flexbox {  display: flex;  flex-wrap: nowrap;  overflow-x: auto;  .card {    flex: 0 0 auto;  }}
Courageous Capybara

Jak dodać poziomy pasek przewijania w HTML


    <style>
    h1 {
        color: Green;
    }
     
    div.scroll {
        margin: 4px, 4px;
        padding: 4px;
        background-color: #08c708;
        width: 300px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }
    </style>
</head>
 
<body>
    <center>
        <h1>GeeksforGeeks</h1>
        <h2>
        Making a div horizontally
        scrollable using CSS
      </h2>
        <div class="scroll">
             It is a good platform to learn programming.
             It is an educational website. Prepare for the
             Recruitment drive of product based companies
             like Microsoft, Amazon, Adobe etc with a free
             online placement preparation course. The course
             focuses on various MCQ's & Coding question likely
             to be asked in the interviews & make your upcoming
             placement season efficient and successful. Also,
             any geeks can help other geeks by writing articles
             on the GeeksforGeeks, publishing articles follow few
             steps that are Articles that need little modification
             or improvement from reviewers are published first.
             To quickly get your articles reviewed, please refer
             existing articles, their formatting style, coding style,
             and try to make you are close to them. In case you are a
             beginner, you may refer Guidelines to write an Article
        </div>
    </center>
</body>
 
</html>
Hurt Heron

poziomy pasek przewijania

remove width:100%;
add float:left;
Joyous Jackal

Odpowiedzi podobne do “poziomy pasek przewijania”

Pytania podobne do “poziomy pasek przewijania”

Więcej pokrewnych odpowiedzi na “poziomy pasek przewijania” w CSS

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu