Is float good for positioning an element?

Is it possible to use float to place an element on a web page, and not to use a position: absolute or relative?

+3
source share
5 answers

Fundamentally? Of course, what is this for.

Whether this is correct depends on what exactly you want to do.

You just need to take care of the consequences - for example, the need to use a property clearwhen using several subsequent floating elements to avoid unwanted effects.

+3
source

HTML CSS, float . (, ), . , CSS . , :)

, position ( Internet Explorer), . , , : . , , .

+3

- , .

+1

float , , . ( ) . , , .

0

float... : ?

No. The float has limitations compared to absolute or relative positioning. Not every layout created by relative or absolute positioning can be done using Float. But this statement is the opposite.

And as all the answers have already stated: each has its own goals, limitations and uses.

0
source

All Articles