Adding CSS to HTML.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 06 May 2010 22:59:51 +0300
changeset 385 8e648d0fd47f
parent 384 e94053d82e26
child 386 76c2f0a2db09
child 387 29f7ca0049c1
Adding CSS to HTML.
css.rst
--- a/css.rst	Wed May 05 23:48:22 2010 +0300
+++ b/css.rst	Thu May 06 22:59:51 2010 +0300
@@ -8,3 +8,26 @@
 
   $ sudo apt-get install cssed
 
+* Adding CSS to HTML.
+
+Include in head tag:
+
+  <html>
+    <head>
+        <link href="path-to.css" rel="stylesheet" type="text/css">
+    </head>
+    ...
+  <html>
+
+or
+
+  <head>
+   <style type="text/css">
+     h1 {border-width: 1; border: solid; text-align: center}
+   </style>
+  </head>
+
+To change style in specific tag use:
+
+  <b style="color: blue; font-family: ariel">Welcome!</b>
+