Responsive holy grail layout with Flexbox
How do I make an responsive holy grail layout with flexbox?
What is a responsive holy grail layout with flexbox? How do you make a responsive holy grail layout with flexbox? This script and codes were developed by Tim Guo on 21 December 2022, Wednesday.
Responsive holy grail layout with Flexbox - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Responsive holy grail layout with Flexbox</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <header></header> <div class="flex"> <nav></nav> <side></side> <main></main> </div> <footer></footer>
</body>
</body>
</html>
Responsive holy grail layout with Flexbox - Script Codes CSS Codes
body,
html { height: 100%; box-sizing: border-box;
}
body { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column;
}
header,
nav,
side,
main,
footer { padding: 10px;
}
.flex { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
}
header,
footer { background: rgba(255, 0, 0, 0.4); width: 100%; height: 40px;
}
nav,
side { width: 12em;
}
main { background: rgba(0, 0, 255, 0.4); -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
}
nav { background: rgba(0, 255, 0, 0.3); -webkit-box-ordinal-group: 0; -ms-flex-order: -1; order: -1;
}
side { background: rgba(0, 255, 0, 0.5); -webkit-box-ordinal-group: 2; -ms-flex-order: 1; order: 1;
}
@media (max-width: 700px) { .flex { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; } nav, side { height: 40px; width: 100%; } side { -webkit-box-ordinal-group: 0; -ms-flex-order: -1; order: -1; }
}
Developer | Tim Guo |
Username | timothyguo |
Uploaded | December 21, 2022 |
Rating | 3 |
Size | 2,168 Kb |
Views | 34,408 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
CSS Quantity Queries Demo | 3,673 Kb |
Sticky Footer with Flexbox | 1,986 Kb |
Css Transition | 1,911 Kb |
Responsive Alert Settings | 8,411 Kb |
Pacman loading animation | 3,052 Kb |
Registration | 6,361 Kb |
A Pen by Tim Guo | 4,415 Kb |
Bat Pixel Art Animation on one Div | 44,298 Kb |
Checkbox Table with Tree Structure | 4,354 Kb |
Three Pane App Layout | 2,923 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Coming Soon | MariamMassadeh | 1,680 Kb |
Amazing CSS Menu with Notification Badges | Faizanasad | 2,549 Kb |
Force Counter | Kenlauguico | 2,732 Kb |
Pure CSS Tooltip | APinix | 2,815 Kb |
Drag in vanilla js using dotval math instead of translate | Paulq | 2,662 Kb |
Twitch.tv API | Ryzokuken | 2,618 Kb |
Animating characters with jQuery | 042 | 2,776 Kb |
Perspective Origin Demo | Agelber | 3,614 Kb |
Rain Landing in a Pond | Edball | 3,009 Kb |
Experiment | Toddmoy | 2,849 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!