0

what is the difference between float and text-align ?

26th Nov 2021, 5:20 AM
BARKLGN MULUGETA
BARKLGN MULUGETA - avatar
2 Respostas
+ 2
Please always tag the language you're asking about. https://code.sololearn.com/W3uiji9X28C1/?ref=app
26th Nov 2021, 2:13 PM
Simon Sauter
Simon Sauter - avatar
+ 5
Assuming this is about web styling, and that you know the use of both properties... The difference is that text-align only affects positioning of the element's text content, while float has a much larger positioning affect scope (the sorrounding elements). more info is on w3schools
26th Nov 2021, 5:27 AM
Charles Jones
Charles Jones - avatar