Responsive holy grail layout with Flexbox

Developer
Size
2,168 Kb
Views
34,408

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 Previews

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; }
}
Responsive holy grail layout with Flexbox - Script Codes
Responsive holy grail layout with Flexbox - Script Codes
Home Page Home
Developer Tim Guo
Username timothyguo
Uploaded December 21, 2022
Rating 3
Size 2,168 Kb
Views 34,408
Do you need developer help for Responsive holy grail layout with Flexbox?

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!

Tim Guo (timothyguo) Script Codes
Create amazing art & images with AI!

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!