WEBLEB
Startseite
Editor
Anmelden
Pro
Deutsch
English
Français
Español
Português
Deutsch
Italiano
हिंदी
Seitenleiste
1616
ledoc
Im Editor öffnen
Veröffentlichen Sie Ihren Code
16 November 2024
So erstellen Sie eine Raster-Seitenleiste in CSS
16 November 2024
Seitenleiste umschalten
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