Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

97
Vistas
how to remove scrollbar using inline css. I want to do it on just javascript as i created this in just vanilla javascript

code

output

Here is my code and here is the output. I want to remove the scrollbar using just vanilla javascript.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I'm not going to use your code because you provided an image instead of something that can be copy-pasted. But here's your answer:

You can disable scrollbars with inline CSS for FireFox and for IE + Edge.

You can't disable Chrome, Safari, or Opera scrollbars with inline CSS. You must use a <style> tag.

<!-- Disabling scrollbars for Internet Explorer, Edge, and Firefox -->
<html style="margin: 0; padding: 0; -ms-overflow-style: none; scrollbar-width: none">
    <body style="height: 200vh">
        <div style="width: 100%; height: 100vh; background: green"></div>
        <div style="width: 100%; height: 100vh; background: orange"></div>
    </body>
</html>

<style>
    /* Disabling scrollbars for Chrome, Opera, and Safari */
    body::-webkit-scrollbar {
        display: none;
    }
</style>

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda