CSS Property : clear explained !

Veröffentlicht am: 03 Januar 2023
auf dem Kanal: Code Canvas
202
14

The clear property is a CSS property that specifies which sides of an element other floating elements are not allowed. It is used to prevent elements from floating next to each other, allowing text to wrap around them instead.

The clear property can be set to one of the following values:

left: Floating elements are not allowed on the left side of the element.
right: Floating elements are not allowed on the right side of the element.
both: Floating elements are not allowed on either the left or right sides of the element.
none: Floating elements are allowed on both sides of the element (default value).

Here is an example of how to use the clear property in a CSS rule:

div.clear-left {
clear: left;
}

This rule would cause any div element with the class clear-left to have a clear property of "left", meaning that no floating elements would be allowed on the left side of the element.

🔔 Subscribe for more videos like this : https://www.youtube.com/c/CodeCanvas?...

#css3 #css #csstricks


Auf dieser Seite können Sie das Online-Video CSS Property : clear explained ! mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Code Canvas 03 Januar 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 202 Mal angesehen und es wurde von 14 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!