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