[ Home | About | Licence | About author | Contact ]
Written by Oleksandr Gavenko (AKA gavenkoa), compiled at 2015-10-05
from rev 764bb173578d
.
HTML.¶
Disable quirk mode.¶
<!DOCTYPE HTML>
Page encoding.¶
Place in HEAD tag (CHARSET is one among of defined by http://www.iana.org/assignments/character-sets):
<meta http-equiv="Content-Type" content="text/html; charset=CHARSET">
or in HTML 5:
<meta charset="utf-8">
See:
Center an object.¶
To center block-level element:
<div style="margin-left: auto; margin-right: auto; position: relative; width: 700px;">
<div>SOME</div>
</div>
To center inline element:
<p style="text-align: center;">TEXT</p>