Can you put a floating element inside a floating element in css?

<div>
    <div></div>
</div>

for example: if the parent div is set to float, can the child div still set float?

Css
Jul.12,2021

just try it


of course, just try it.
it is said that floating the parent element is also a way to clear the float, but it is generally not needed.

Menu