author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 08 Jul 2012 12:29:56 +0300 | |
changeset 1325 | ea51f96a6a47 |
parent 1119 | fd5d841f7273 |
child 1334 | 9bf0d5a1f0cf |
permissions | -rw-r--r-- |
1040 | 1 |
.. -*- coding: utf-8 -*- |
2 |
||
3 |
======= |
|
4 |
HTML. |
|
5 |
======= |
|
6 |
||
1119
fd5d841f7273
Disable quirk mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1118
diff
changeset
|
7 |
Disable quirk mode. |
fd5d841f7273
Disable quirk mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1118
diff
changeset
|
8 |
=================== |
fd5d841f7273
Disable quirk mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1118
diff
changeset
|
9 |
:: |
fd5d841f7273
Disable quirk mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1118
diff
changeset
|
10 |
|
fd5d841f7273
Disable quirk mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1118
diff
changeset
|
11 |
<!DOCTYPE HTML> |
fd5d841f7273
Disable quirk mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1118
diff
changeset
|
12 |
|
1040 | 13 |
Page encoding. |
14 |
============== |
|
15 |
||
16 |
Place in HEAD tag (CHARSET is one among of defined by |
|
17 |
http://www.iana.org/assignments/character-sets):: |
|
18 |
||
19 |
<meta http-equiv="Content-Type" content="text/html; charset=CHARSET"> |
|
20 |
||
21 |
See: |
|
22 |
||
23 |
http://www.w3.org/TR/REC-html40/charset.html#h-5.2.2 |
|
24 |
||
25 |
Center an object. |
|
26 |
================= |
|
27 |
||
28 |
To center blog-level element:: |
|
29 |
||
1118
148d4e3855e2
position: relative; width: 700px;
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1047
diff
changeset
|
30 |
<div style="margin-left: auto; margin-right: auto; position: relative; width: 700px;"> |
1040 | 31 |
<div>SOME</div> |
32 |
</div> |
|
33 |
||
34 |
To center inline element:: |
|
35 |
||
36 |
<p style="text-align: center;">TEXT</p> |
|
37 |
||
1047 | 38 |
Browser support. |
39 |
================ |
|
40 |
||
41 |
* http://htmlbook.ru/ |
|
42 |
* http://www.quirksmode.org/ |
|
43 |