Learning FlexBox

Size
2,821 Kb
Views
58,696

How do I make an learning flexbox?

What is a learning flexbox? How do you make a learning flexbox? This script and codes were developed by Alex Rodrigues on 13 August 2022, Saturday.

Learning FlexBox Previews

Learning FlexBox - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Learning FlexBox</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrap"><ul> <li class="list1"> <h2 class="inner">test1</h2> </li> <li class="list2"> <h2 class="inner">test2</h2> </li> <li class="list3"> <h2 class="inner">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorem maxime natus, ullam id sunt voluptas impedit porro molestiae reiciendis delectus iste omnis est itaque distinctio, expedita rerum. Nobis, porro obcaecati.</h2> </li> <li class="list4"> <h2 class="inner">test4</h2> </li> <li class="list5"> <h2 class="inner">test5</h2> </li> <li class="list6"> <h2 class="inner">test6</h2> </li>
</ul>
</div>
</body>
</html>

Learning FlexBox - Script Codes CSS Codes

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline;
}
html { line-height: 1;
}
ol, ul { list-style: none;
}
table { border-collapse: collapse; border-spacing: 0;
}
caption, th, td { text-align: left; font-weight: normal; vertical-align: middle;
}
q, blockquote { quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after { content: ""; content: none;
}
a img { border: none;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block;
}
* { box-sizing: border-box;
}
.wrap { width: calc(100% - 10em); margin: 4em auto;
}
.wrap ul { display: flex; flex-wrap: wrap; justify-content: space-around; align-content: space-around;
}
.wrap ul li { flex: 1; color: #fff; flex-basis: 300px; padding: 2%; margin: 1em;
}
.wrap ul li.list1 { background: #f69679;
}
.wrap ul li.list2 { background: #fff799;
}
.wrap ul li.list3 { background: #82ca9c;
}
.wrap ul li.list4 { background: #6dcff6;
}
.wrap ul li.list5 { background: #8393ca;
}
.wrap ul li.list6 { background: #f49ac1;
}
.wrap ul li h2 { align-self: center;
}
.wrap ul li h2:after { content: ""; width: 30px; clear: left; margin: 2% 0; height: 4px; background: #fff; display: block;
}
Learning FlexBox - Script Codes
Learning FlexBox - Script Codes
Home Page Home
Developer Alex Rodrigues
Username alex_rodrigues
Uploaded August 13, 2022
Rating 3
Size 2,821 Kb
Views 58,696
Do you need developer help for Learning 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!

Alex Rodrigues (alex_rodrigues) Script Codes
Create amazing blog posts 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!