• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

.clearfix:after CSS class for floating nested divs

Joined
Apr 10, 2006
Messages
373 (0.06/day)
Location
Arizona, USA
Processor Intel Core i5 3450
Motherboard Asus P8H77-M Pro
Cooling Thermalright HR-02 Macho
Memory 2x2GB G-Skill DDR3-2000
Video Card(s) Asus GTX660ti 2GB
Storage 128GB Samsung 830, 1TB Western Digital Caviar Black
Display(s) 23" Dell U2311H
Case Silverstone FT03 (titanium color)
Audio Device(s) Onboard Realtek ALC892
Power Supply SeaSonic X series SS-460FL
Software Windows 8 Professional 64-bit
clear: both to fix float: left

Nevermind. Thanks to CSS-Tricks, I discovered that clear: both; will simply clear the float properties on the containing element.
 
Last edited:
Top