Simple flexbox layout
How do I make an simple flexbox layout?
What is a simple flexbox layout? How do you make a simple flexbox layout? This script and codes were developed by AciD on 15 October 2022, Saturday.
Simple flexbox layout - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple flexbox layout</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> <div class="container"> <div class="header"></div> <div class="contentContainer"> <div class="content"></div> <div class="links"></div> </div>
</div> <script src="js/index.js"></script>
</body>
</html>
Simple flexbox layout - Script Codes CSS Codes
.container { height: 100vh; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column;
}
.container > div { width: 100%;
}
.contentContainer { border: 1px dashed deeppink; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; height: 80vh;
}
.header { background-color: blue; height: 20vh;
}
.content { background-color: yellow; -webkit-box-flex: 3; -ms-flex-positive: 3; flex-grow: 3;
}
.links { background-color: green; -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1;
}
* { margin: 0; padding: 0; box-sizing: border-box;
}
body { background: #333; color: white; font-family: "Open sans", sans-serif; font-weight: 100; font-size: 1rem;
}
Simple flexbox layout - Script Codes JS Codes
"use strict";
Developer | AciD |
Username | AnotherLinuxUser |
Uploaded | October 15, 2022 |
Rating | 3 |
Size | 2,463 Kb |
Views | 28,336 |
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!
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 |
Animated skewed panes | NyX | 4,462 Kb |
Birthday Party Starter | Aussieyang | 1,629 Kb |
Obligatory CSS3 UI Nav | Romandiaz | 9,017 Kb |
Simple CSS loader. | Cabrera | 2,574 Kb |
Social buttons | Flacu | 2,022 Kb |
Ipad Mini Showcase | Hornebom | 10,479 Kb |
LAMP PURE CSS with Animation | Dam62500 | 2,911 Kb |
Headroom.js demo | WickyNilliams | 3,982 Kb |
Import shader in three.js | Khangeldy | 2,636 Kb |
Scroll to view if element partially out of view port height | ChrisMaki | 2,104 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!