+ 10
How can i align some block that floated?
I want align some tags that floated to right , align them in center of content, how can i do it?
4 Answers
+ 2
You can not center floating elements.
Floating elements can can only go right or left if you want to center elements then make sure their not floated.
+ 5
you cant. They can just be float:right; or float:left; The only thing u could do is to align it inside a div :)
+ 4
A B O O Z A R - E S M A I L I
Try this:
<p align="center">
This text is aligned to center
</p>
+ 2
learn flexbox, floating isnt the best solution
.parent{
display:flex;
justify-content:center;
align-items:center;
}