Simple Clearfix
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 - 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;
}
Developer | Kevin |
Username | kevinpowell |
Uploaded | August 12, 2022 |
Rating | 3 |
Size | 1,508 Kb |
Views | 36,432 |
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 |
Anchors | 2,264 Kb |
CSS Grid Area demo | 3,928 Kb |
Explicit and Implicit grid | 2,297 Kb |
Smooth Scrolling with jQuery | 3,471 Kb |
Collapsing divs with floats | 1,532 Kb |
Setting label widths | 1,556 Kb |
Bootstrap grid basics | 1,559 Kb |
CSS blending modes test | 2,452 Kb |
Awesome Portfolio demo | 3,635 Kb |
Parallax scrolling - one class, multiple divs | 2,192 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 |
Blank Starter | Mhartington | 2,171 Kb |
SVG Circle Progress | JMChristensen | 3,368 Kb |
Draggable directive | YahyaKacem | 2,277 Kb |
Prism | Pyrografix | 2,843 Kb |
Pure CSS candle light animation by One element | Ksksoft | 2,193 Kb |
Flower expansion | Sreucherand | 3,425 Kb |
CSS Infinite 360 | APinix | 5,564 Kb |
Airbnb Homepage | SindhujaD | 2,480 Kb |
Table Exercise | Fresco | 9,585 Kb |
Adding Items | Valhead | 4,008 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!