Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of Clearing Floats</title> <style> .clear { clear: left; } p { float: left; margin: 10px; padding: 10px; background: #f0e68c; } </style> </head> <body> <p>Floated to left.</p> <p class="clear">No floated elements are allowed on left side.</p> </body> </html>