# HG changeset patch # User Oleksandr Gavenko # Date 1485610032 -7200 # Node ID 8ae2aee591e7f2808e0d77a74e43225c9f229d2e # Parent fbbac44cd95e6d0d52fae7e7f92f0a7abfd2c9d8 Reorder sections. diff -r fbbac44cd95e -r 8ae2aee591e7 css.rst --- a/css.rst Sat Jan 28 15:25:45 2017 +0200 +++ b/css.rst Sat Jan 28 15:27:12 2017 +0200 @@ -25,6 +25,11 @@ https://www.w3.org/TR/CSS21/ CSS level 2 rev 1. +Default style for HTML elements +=============================== + + * http://www.w3.org/TR/CSS2/sample.html + Adding CSS to HTML ================== @@ -135,10 +140,19 @@ @import url(print.css) print; -Default style for HTML elements -=============================== +Including font +============== +:: - * http://www.w3.org/TR/CSS2/sample.html + @font-face { + font-family: Gentium; + src: url(http://example.com/fonts/Gentium.woff); + } + + p { font-family: Gentium, serif; } + +https://www.w3.org/TR/css-fonts-3/ + CSS Fonts Module Level 3. Media queries ============= @@ -235,17 +249,3 @@ Graphical editor:: $ sudo apt-get install cssed - -Including font -============== -:: - - @font-face { - font-family: Gentium; - src: url(http://example.com/fonts/Gentium.woff); - } - - p { font-family: Gentium, serif; } - -https://www.w3.org/TR/css-fonts-3/ - CSS Fonts Module Level 3.