author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 22 Feb 2016 12:41:52 +0200 | |
changeset 1903 | 901e7394849f |
parent 1697 | f41d35f4af39 |
child 1905 | fba288d59662 |
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 |
||
1529 | 23 |
or in HTML 5:: |
24 |
||
1697
f41d35f4af39
Remove trailing spaces.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1529
diff
changeset
|
25 |
<meta charset="utf-8"> |
1529 | 26 |
|
1040 | 27 |
See: |
28 |
||
29 |
http://www.w3.org/TR/REC-html40/charset.html#h-5.2.2 |
|
30 |
||
31 |
Center an object. |
|
32 |
================= |
|
33 |
||
1368 | 34 |
To center block-level element:: |
1040 | 35 |
|
1118
148d4e3855e2
position: relative; width: 700px;
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1047
diff
changeset
|
36 |
<div style="margin-left: auto; margin-right: auto; position: relative; width: 700px;"> |
1040 | 37 |
<div>SOME</div> |
38 |
</div> |
|
39 |
||
40 |
To center inline element:: |
|
41 |
||
42 |
<p style="text-align: center;">TEXT</p> |
|
43 |
||
1047 | 44 |
Browser support. |
45 |
================ |
|
46 |
||
47 |
* http://htmlbook.ru/ |
|
48 |
* http://www.quirksmode.org/ |
|
49 |