Centering with flexbox

Size
1,555 Kb
Views
20,240

How do I make an centering with flexbox?

What is a centering with flexbox? How do you make a centering with flexbox? This script and codes were developed by Raphael Goetter on 19 September 2022, Monday.

Centering with flexbox Previews

Centering with flexbox - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Centering with flexbox</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <p>KNACKY !</p>
</div>
</body>
</html>

Centering with flexbox - Script Codes CSS Codes

div { display: -webkit-box; display: -ms-flexbox; display: flex; min-height: 100vh;
}
p { margin: auto;
}
/* deco */
body {margin: 0;	font-family: "Century Gothic", helvetica, arial, sans-serif;
}
div { background: pink;
}
p { background: olivedrab; color: #fff; padding: 1em; border-radius: 10px; font-size: 3rem;
}
Centering with flexbox - Script Codes
Centering with flexbox - Script Codes
Home Page Home
Developer Raphael Goetter
Username raphaelgoetter
Uploaded September 19, 2022
Rating 3
Size 1,555 Kb
Views 20,240
Do you need developer help for Centering with 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!

Raphael Goetter (raphaelgoetter) 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!