Simple Clearfix

Developer
Size
1,508 Kb
Views
36,432

How do I make an simple clearfix?

What is a simple clearfix? How do you make a simple clearfix? This script and codes were developed by Kevin on 12 August 2022, Friday.

Simple Clearfix Previews

Simple Clearfix - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple Clearfix</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container cf"> <div class="floating-box"> <p>This is a floating box!</p> </div>
</div>
</body>
</html>

Simple Clearfix - Script Codes CSS Codes

.container { width: 400px; background: blue; margin: 0 auto; padding: 25px;
}
.floating-box { background: pink; padding: 10px; text-align: center; float: left;
}
.cf:after { content: ''; display: block; clear: both;
}
Simple Clearfix - Script Codes
Simple Clearfix - Script Codes
Home Page Home
Developer Kevin
Username kevinpowell
Uploaded August 12, 2022
Rating 3
Size 1,508 Kb
Views 36,432
Do you need developer help for Simple Clearfix?

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!

Kevin (kevinpowell) Script Codes
Create amazing Facebook ads 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!