Flex-demo

Developer
Size
2,645 Kb
Views
10,120

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 Previews

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;
}
Flex-demo - Script Codes
Flex-demo - Script Codes
Home Page Home
Developer Mark Michon
Username markmichon
Uploaded January 29, 2023
Rating 3
Size 2,645 Kb
Views 10,120
Do you need developer help for Flex-demo?

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!

Mark Michon (markmichon) Script Codes
Create amazing captions 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!