Reference
Floating
- float.width / 2
Subtract
float.width / 2
to align the floating element's center