Flexbox

Developer
Size
2,263 Kb
Views
16,192

How do I make an flexbox?

What is a flexbox? How do you make a flexbox? This script and codes were developed by Jeanine on 12 September 2022, Monday.

Flexbox Previews

Flexbox - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flexbox</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper">
<div class="flex-container"> <div class="flex-item"><h3>This is a great event</h3><p>xx</p></div> <div class="flex-item"><h4>More</h4><ul><li>x</li><li>x</li><li>x</li><li>x</li><li>x</li><li>x</li></ul></div> <div class="flex-item">xx</div> <div class="flex-item">xx</div> <div class="flex-item">xx</div>
</div>
</div> <script src="js/index.js"></script>
</body>
</html>

Flexbox - Script Codes CSS Codes

* { box-sizing:border-box; font-family:arial;}
.wrapper { width:100%;max-width:900px;margin:0 auto;}
.flex-item { padding:40px; border-collapse:collapse;}
.flex-container { border:1px solid #ccc;border-width: 1px 0 0 1px }
.flex-item { border:1px solid #ccc;border-width: 0 1px 1px 0 }
.flex-item:nth-child(5) { background:url('http://satinflame.com/clarion/images/stock/400-300a.jpg');
}
/* start pulled in css */
.flex-container { width:100%; background:#fcfcfc; height:300px; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: flex-start; -ms-flex-pack: start; justify-content: flex-start; -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; -webkit-align-items: stretch; -ms-flex-align: stretch; align-items: stretch; }
.flex-item:nth-child(1) { -webkit-order: 1; -ms-flex-order: 1; order: 1; -webkit-flex: 1 5 auto; -ms-flex: 1 5 auto; flex: 1 5 auto; -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto; }
.flex-item:nth-child(2) { -webkit-order: 2; -ms-flex-order: 2; order: 2; -webkit-flex: 1 1 auto; -ms-flex: 1 1 auto; flex: 1 1 auto; -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto; }
.flex-item:nth-child(3) { -webkit-order: 0; -ms-flex-order: 0; order: 0; -webkit-flex: 1 1 auto; -ms-flex: 1 1 auto; flex: 1 1 auto; -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto; }
.flex-item:nth-child(4) { -webkit-order: 03; -ms-flex-order: 03; order: 03; -webkit-flex: 1 1 auto; -ms-flex: 1 1 auto; flex: 1 1 auto; -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto; }
.flex-item:nth-child(5) { -webkit-order: 0; -ms-flex-order: 0; order: 0; -webkit-flex: 3 1 auto; -ms-flex: 3 1 auto; flex: 3 1 auto; -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto; }
@media (max-width:768px) { .flex-container { -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; }
}

Flexbox - Script Codes JS Codes

/*
http://the-echoplex.net/flexyboxes/?fixed-height=on&display=flex&flex-direction=column&flex-wrap=wrap&justify-content=flex-start&align-items=stretch&align-content=stretch&order%5B%5D=1&flex-grow%5B%5D=1&flex-shrink%5B%5D=5&flex-basis%5B%5D=auto&align-self%5B%5D=auto&order%5B%5D=2&flex-grow%5B%5D=1&flex-shrink%5B%5D=1&flex-basis%5B%5D=auto&align-self%5B%5D=auto&order%5B%5D=0&flex-grow%5B%5D=1&flex-shrink%5B%5D=1&flex-basis%5B%5D=auto&align-self%5B%5D=auto&order%5B%5D=03&flex-grow%5B%5D=1&flex-shrink%5B%5D=1&flex-basis%5B%5D=auto&align-self%5B%5D=auto&order%5B%5D=0&flex-grow%5B%5D=3&flex-shrink%5B%5D=1&flex-basis%5B%5D=auto&align-self%5B%5D=auto
*/
Flexbox - Script Codes
Flexbox - Script Codes
Home Page Home
Developer Jeanine
Username virtual
Uploaded September 12, 2022
Rating 3
Size 2,263 Kb
Views 16,192
Do you need developer help for 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!

Jeanine (virtual) Script Codes
Create amazing SEO 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!