CSS Property : clear explained !

Publicado el: 03 enero 2023
en el canal de: 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


En esta página del sitio puede ver el video en línea CSS Property : clear explained ! de Duración hora minuto segunda en buena calidad , que subió el usuario Code Canvas 03 enero 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 202 veces y le gustó 14 a los espectadores. Disfruta viendo!