Flex-demo
How do I make an flex-demo?
What is a flex-demo? How do you make a flex-demo? This script and codes were developed by Mark Michon on 29 January 2023, Sunday.
Flex-demo - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>flex-demo</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .container { background-color: #f2f2f2; border: 1px solid #ccc; display: flex;
}
.item { width: 20%; min-height: 200px; background-color: #EF5423; margin: 1em;
}
nav { background-color: #333; color: #efefef;
}
ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end;
}
ul li:not(:last-child) { margin-right: .5rem;
}
.column { width: 50%; background-color: #ccc; height: 500px; margin: 0 1em; display: flex; justify-content: flex-start;
}
.nested { height: 100px;
}
.primary { flex-grow: 2; align-self: center;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <h2>Elements</h2>
<section class="container"> <article class="item">1</article> <article class="item">2</article> <article class="item"></article> <article class="item"></article> <article class="item"></article> <article class="item"></article>
</section>
<h2>Navigation</h2>
<nav> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> </ul>
</nav>
<h2>Nested Flexbox</h2>
<section class="container"> <article class="column"> <div class="item nested">1</div> <div class="item nested primary">2</div> <div class="item nested">3</div> </article> <article class="column"> <div class="item"></div> <div class="item"></div> <div class="item"></div> </article>
</section>
</body>
</html>
Flex-demo - Script Codes CSS Codes
.container { background-color: #f2f2f2; border: 1px solid #ccc; display: flex;
}
.item { width: 20%; min-height: 200px; background-color: #EF5423; margin: 1em;
}
nav { background-color: #333; color: #efefef;
}
ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end;
}
ul li:not(:last-child) { margin-right: .5rem;
}
.column { width: 50%; background-color: #ccc; height: 500px; margin: 0 1em; display: flex; justify-content: flex-start;
}
.nested { height: 100px;
}
.primary { flex-grow: 2; align-self: center;
}
Developer | Mark Michon |
Username | markmichon |
Uploaded | January 29, 2023 |
Rating | 3 |
Size | 2,645 Kb |
Views | 10,120 |
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 |
Image reveal on hover | 2,995 Kb |
A Pen by Mark Michon | 2,220 Kb |
Dashboard Graph | 6,551 Kb |
List experiment | 2,259 Kb |
Even images demo | 2,080 Kb |
Fluid Heart | 1,939 Kb |
Moving gradient | 2,619 Kb |
DataTables Custom Filter Demo | 3,327 Kb |
Flex images demo | 1,857 Kb |
CSS Heart | 1,878 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 |
Jochaho Skeleton | Dhanushbadge | 1,689 Kb |
Reviews and Ratings Star | Zbnmstry | 1,591 Kb |
Twitch TV | Natester13 | 4,488 Kb |
HTML5 Breakout | Jaysalvat | 4,873 Kb |
Em Test | Rodesco | 1,784 Kb |
Out of the blue | Giaco | 2,537 Kb |
Angular-HAML | Cwacht | 2,022 Kb |
Random Gradients - JS | Aldlevine | 2,026 Kb |
A Pen by Stan Williams | Stanssongs | 6,706 Kb |
Expandable Left Side Bar with jQuery animate | Retrofuturistic | 2,483 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!