css.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 02 Jul 2010 10:45:36 +0300
changeset 432 9ed9bd59c0fd
parent 387 29f7ca0049c1
child 735 5c437e2d5fe1
permissions -rw-r--r--
Set TMP and TEMP env vars for Cygwin.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
87
01949ddd2fe5 Editor for css.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
-*- outline -*-
01949ddd2fe5 Editor for css.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
01949ddd2fe5 Editor for css.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
* Emacs.
01949ddd2fe5 Editor for css.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
01949ddd2fe5 Editor for css.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
  $ sudo apt-get install css-mode
01949ddd2fe5 Editor for css.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
01949ddd2fe5 Editor for css.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
* Graphical editor.
01949ddd2fe5 Editor for css.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
01949ddd2fe5 Editor for css.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
  $ sudo apt-get install cssed
01949ddd2fe5 Editor for css.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
385
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    11
* Adding CSS to HTML.
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    12
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    13
Include in head tag:
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    14
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    15
  <html>
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    16
    <head>
387
29f7ca0049c1 fix indent
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 385
diff changeset
    17
      <link href="path-to.css" rel="stylesheet" type="text/css">
385
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    18
    </head>
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    19
    ...
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    20
  <html>
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    21
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    22
or
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    23
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    24
  <head>
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    25
   <style type="text/css">
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    26
     h1 {border-width: 1; border: solid; text-align: center}
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    27
   </style>
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    28
  </head>
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    29
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    30
To change style in specific tag use:
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    31
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    32
  <b style="color: blue; font-family: ariel">Welcome!</b>
8e648d0fd47f Adding CSS to HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 87
diff changeset
    33