WEBLEB
Inicio
Editora de código
Iniciar sesión
Pro
Español
English
Français
Español
Português
Deutsch
Italiano
हिंदी
Barra lateral
1520
ledoc
Abrir en el editor
Publica tu código
Recomendado
17 August 2024
Plantilla de barra de navegación de Bootstrap
26 March 2025
Formulario de varios pasos con barra de progreso usando jQuery y CSS3
1 November 2024
Sitio web de portafolio HTML con menú lateral
HTML
Copy
Toggle Sidebar Navigation html css javascript
×
SideMenu
Home
About
Portfolio
Services
Contact
☰ TOGGLEMENU
Toggle Sidebar Navigation
html css javascript
CSS
Copy
body { margin: 0; font-family: 'Poppins', sans-serif; } .sideMenu { height: 100%; width: 0; position: fixed; z-index: 1; top: 0; left: 0; background: darksalmon; overflow-x: hidden; transition: 0.5s; padding-top: 60px; } .main-menu h2 { text-align: center; letter-spacing: 7px; color: #fff; background: #111; padding: 20px 0; } .sideMenu a { padding: 8px 8px 8px 32px; text-decoration: none; color: #fff; display: block; transition: 0.3s; font-size: 18px; margin-bottom: 20px; text-transform: uppercase; font-weight: 900; } .sideMenu a i { padding-right: 15px; } .main-menu a:hover { color: #f1f1f1; background: #111; } .sideMenu .closebtn { position: absolute; top: 0; right: 25px; font-size: 36px; margin-left: 50px; } #content-area { transition: margin-left .5s; padding: 16px; } .content-text { padding: 100px 180px; text-align: center; } .content-text h2 { background: darksalmon; display: inline-block; padding: 15px 35px; text-transform: uppercase; font-size: 50px; color: #fff; } .content-text h3 { text-transform: uppercase; font-size: 45px; margin: 0; letter-spacing: 3px; }
JS
Copy