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