Responsive flex layout
How do I make an responsive flex layout?
Responsive layout of a team members webpage using flex box. Team members taken from 500px.com. What is a responsive flex layout? How do you make a responsive flex layout? This script and codes were developed by Dhanush Badge on 12 November 2022, Saturday.
Responsive flex layout - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Responsive flex layout</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="team"> <figure><img src="http://500px.com/graphics/pages/team/squares/oleg.jpg"><figcaption>Oleg Gutsol</figcaption></figure> <figure><img src="http://500px.com/graphics/pages/team/squares/evgeny.jpg"><figcaption>Evgeny Tchebotarev</figcaption></figure> <figure><img src="http://500px.com/graphics/pages/team/squares/dustin.jpg"><figcaption>Dustin Plett</figcaption></figure> <figure><img src="http://500px.com/graphics/pages/team/squares/adam.jpg"><figcaption>Adam Shutsa</figcaption></figure> <figure><img src="http://500px.com/graphics/pages/team/squares/diana.jpg"><figcaption>Diana Tula</figcaption></figure> <figure><img src="http://500px.com/graphics/pages/team/squares/andrey.jpg"><figcaption>Andrey Tochilin</figcaption></figure> <figure><img src="http://500px.com/graphics/pages/team/squares/paddy.jpg"><figcaption>Paddy O’Brien</figcaption></figure> <figure><img src="http://500px.com/graphics/pages/team/squares/roxy.jpg"><figcaption>Roxy Keshavarznia</figcaption></figure> <figure><img src="http://500px.com/graphics/pages/team/squares/eric.jpg"><figcaption>Eric Akaoka</figcaption></figure> <figure><img src="http://500px.com/graphics/pages/team/squares/marc.jpg"><figcaption>Marc Bodmer</figcaption></figure> <figure><img src="http://500px.com/graphics/pages/team/squares/david.jpg"><figcaption>David Charlec</figcaption></figure> <figure><img src="http://500px.com/graphics/pages/team/squares/hugo.jpg"><figcaption>Hugo Croft-Levesque</figcaption></figure>
</div>
</body>
</html>
Responsive flex layout - Script Codes CSS Codes
html { font-size:62.5%;
}
body { margin:0; font-size:1.4rem; font-family:arial; background-color:#ddd;
}
img { border:0; width:100%; height:100%;
}
#team { max-width:96rem; width:100%; min-height:200px; height:auto; margin:0 auto; background-color:white; box-sizing:border-box; padding:0; display:-webkit-flex; display:flex; -webkit-align-items:center; align-items:center; -webkit-justify-content:center; justify-content:center; -webkit-flex-direction:row; flex-direction:row; -webkit-flex-wrap:wrap; flex-wrap:wrap; -webkit-align-content:flex-end; align-content:flex-end;
}
figure { width:12.5rem; height:12.5rem; display:block; margin:0.5rem 1rem 4rem 0.5rem; padding:0; box-sizing:content-box; color:black;
}
figure img { -webkit-border-radius:50%; -moz-border-radius:50%; border-radius:50%;
}
#team figure img { -webkit-transition:opacity 0.26s ease-out; -moz-transition:opacity 0.26s ease-out; -ms-transition:opacity 0.26s ease-out; -o-transition:opacity 0.26s ease-out; transition:opacity 0.26s ease-out;
}
#team:hover img, #team:active img { opacity:0.3;
}
#team:hover img:hover, #team:active img:active { opacity:1;
}
figcaption { font-size:1.2rem; text-align:center;
}
Developer | Dhanush Badge |
Username | dhanushbadge |
Uploaded | November 12, 2022 |
Rating | 3.5 |
Size | 2,088 Kb |
Views | 26,312 |
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 |
3D text-shadow | 1,923 Kb |
JQuery show hide slide div | 1,728 Kb |
HTML5 Table of Contents | 2,401 Kb |
JQuery animate function | 1,657 Kb |
Scared cat | 1,855 Kb |
Shoot the text | 3,001 Kb |
Html5 keygen | 2,544 Kb |
Html5 output | 2,381 Kb |
2d shape in 3d view | 2,031 Kb |
CSS3 Window | 2,429 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 |
Faux column absolute wrapper | Yurimorini | 1,823 Kb |
Banner Ad | Raquellorenzana | 4,172 Kb |
This in constructor context | _shree33 | 1,718 Kb |
Angular Route | Arun_v606 | 1,837 Kb |
Product item | Mymahesh11 | 2,256 Kb |
A Pen by Rob Levin | Roblevin | 2,787 Kb |
AngularJS Skills | Supro | 3,312 Kb |
Ipad Mini Showcase | Hornebom | 10,479 Kb |
Experiments with Vertical Centering | KatieK2 | 3,924 Kb |
Nested flexbox layout for library catalog | Boycetrus | 3,271 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!