Basic Flexbox Reference

Developer
Size
1,662 Kb
Views
36,432

How do I make an basic flexbox reference?

[WIP] Setting up some basic examples of display: flex in a format that can be used later. What is a basic flexbox reference? How do you make a basic flexbox reference? This script and codes were developed by Matt Gross on 28 August 2022, Sunday.

Basic Flexbox Reference Previews

Basic Flexbox Reference - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Basic Flexbox Reference</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <section class="example control"> <div>one</div> <div>two</div> <div>three</div> <div>four</div>
</section>
<section class="example row"> <div>one</div> <div>two</div> <div>three</div> <div>four</div>
</section>
<section class="example row-reverse"> <div>one</div> <div>two</div> <div>three</div> <div>four</div>
</section>
<section class="example column"> <div>one</div> <div>two</div> <div>three</div> <div>four</div>
</section>
<section class="example column-reverse"> <div>one</div> <div>two</div> <div>three</div> <div>four</div>
</section>
<section class="example"> <div>one</div> <div>two</div> <div>three</div> <div>four</div>
</section>
<section class="example"> <div>one</div> <div>two</div> <div>three</div> <div>four</div>
</section>
</body>
</html>

Basic Flexbox Reference - Script Codes CSS Codes

section { width: 100%; min-height: 200px; background: #eee; margin-bottom: 10px;
}
div { padding: 30px;
}
div:first-child { background: #999; }
div:nth-child(2) { background: #777; }
div:nth-child(3) { background: #555; }
div:last-child { background: #333; }
section.row { display: flex; flex-direction: row;
}
section.row-reverse { display: flex; flex-direction: row-reverse;
}
section.column { display: flex; flex-direction: column;
}
section.column-reverse { display: flex; flex-direction: column-reverse;
}
Basic Flexbox Reference - Script Codes
Basic Flexbox Reference - Script Codes
Home Page Home
Developer Matt Gross
Username mattgrosswork
Uploaded August 28, 2022
Rating 3
Size 1,662 Kb
Views 36,432
Do you need developer help for Basic Flexbox Reference?

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!

Matt Gross (mattgrosswork) Script Codes
Create amazing web content 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!