Flex center
How do I make an flex center?
Flex. What is a flex center? How do you make a flex center? This script and codes were developed by Alex Konstantinov on 08 September 2022, Thursday.
Flex center - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flex center</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="flex-item"># 1</div> <div class="flex-item"># 2</div>
</body>
</html>
Flex center - Script Codes CSS Codes
body,html{ height: 100%;
}
body{ background: -webkit-radial-gradient(center ellipse, rgba(245,247,250,1) 0%, rgba(230,233,237,1) 100%); background: radial-gradient(ellipse at center, rgba(245,247,250,1) 0%, rgba(230,233,237,1) 100%); display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align:center; -ms-flex-align:center; align-items:center; -webkit-box-orient:horizontal; -webkit-box-direction:reverse; -ms-flex-direction:row-reverse; flex-direction:row-reverse;
}
.flex-item{ background-color: black; width: 100px; height: 100px; margin: 5px; color: #fff; line-height: 100px; text-align: center; box-shadow:0px 0px 5px lightblue;
}
![Flex center - Script Codes](http://shots.codepen.io/oxla/pen/aOMype-512.jpg)
Developer | Alex Konstantinov |
Username | oxla |
Uploaded | September 08, 2022 |
Rating | 3 |
Size | 1,696 Kb |
Views | 24,288 |
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 |
Loader | 3,161 Kb |
Pulse animation ribbe | 2,103 Kb |
Size window | 1,876 Kb |
Combined font-size and line-height lock, using pixel-based Media Queries | 2,815 Kb |
Step bar with description | 3,749 Kb |
Pirate pixel art css | 2,025 Kb |
Loader wave | 10,194 Kb |
Loader spiner | 1,983 Kb |
Burger menu | 3,424 Kb |
A Pen by Alex Konstantinov | 3,181 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 |
Ionic - Wordpress REST API starter | Superpikar | 2,961 Kb |
A Pen by John Malc | F789gh | 1,420 Kb |
Css3 slide | Nakome | 3,190 Kb |
700 Synapses Per Second | Silentkrange | 2,138 Kb |
STIKHOI | Denmch | 7,122 Kb |
Animate elements with fixed gradient | Badabam | 4,406 Kb |
Price table | Serluk | 5,928 Kb |
Scroll to view if element partially out of view port height | ChrisMaki | 2,104 Kb |
Hamburger Menu Animation | Salmanraza | 2,580 Kb |
Review test | Otro_user_gil | 4,054 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!