Responsive flex layout

Developer
Size
2,088 Kb
Views
26,312

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 Previews

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;
}
Responsive flex layout - Script Codes
Responsive flex layout - Script Codes
Home Page Home
Developer Dhanush Badge
Username dhanushbadge
Uploaded November 12, 2022
Rating 3.5
Size 2,088 Kb
Views 26,312
Do you need developer help for Responsive flex layout?

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!

Dhanush Badge (dhanushbadge) 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!