Left and Right Align – Using float
Another method of aligning elements is to use the float
property:
Tip: When aligning elements with float, always define margin
and
padding
for
the <body>
element. This is to avoid visual differences in different browsers.