all AI news
3 Simple Responsive Sidebar Designs In HTML CSS
Dec. 11, 2023, 2:16 a.m. | Code Boxx
DEV Community dev.to
Basic responsive sidebar designs are not difficult, they just require some CSS flex
magic.
(1) COLLAPSING SIDEBAR
(1A) THE HTML
<div id="main">MAIN</div>
<div id="side">SIDE</div>
Main content to the left, sidebar to the right.
(1B) THE CSS
/* (A) BIG SCREEN - 2 COLUMNS LAYOUT */
body {
display: flex;
padding: 0; margin: 0;
min-height: 100vh; /* optional */
}
#main { flex-grow: 1 …
basic beginners big css designs flex html magic padding responsive sidebar simple webdev
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
AI Engineer Intern, Agents
@ Occam AI | US
AI Research Scientist
@ Vara | Berlin, Germany and Remote
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Lead GNSS Data Scientist
@ Lurra Systems | Melbourne
Data Engineer - Takealot Group (Takealot.com | Superbalist.com | Mr D Food)
@ takealot.com | Cape Town