/**
 * Force element to self-clear its children block elements linebreaks.
 *
 * @return self Returns instance of the Element class.
 *
 * @access public
 */
public function clearfix(): self

Examples

Simple example of usage Div element as container for nested Div elements.

use function Thermage\div;
use function Thermage\render;

// ...

render (
  div(
    div('Stay', 'pl-5 color-green bg-purple bold').
    div('RAD!', 'pl-5 color-green bg-purple bold')
  )->clearfix()
);
Terminal
$ php thermage.php
Stay RAD!
Stay RAD!