Page 207 - Webapplication11_C11_Flipbook
P. 207

Property                    Usage                                  Example
                 text-shadow              Used  to  set  the  horizontal   h1 {
                                          shadow  (2px)  and  the  vertical
                                          shadow (2px) and colour to the     text-shadow: 2px 2px red;
                                          shadow                       }
                 text-decoration-line     Is  used  to  add  the  following  p.one {
                                          decorations to text            text-decoration-line: overline;

                                                                       }
                                                                       p.two {

                                                                         text-decoration-line: line-through;
                                                                       }
                                                                       p.three {
                                                                         text-decoration-line: underline;
                                                                       }
                                                                       h1 {

                                                                              text-decoration-line:           overline
                                                                       underline;
                                                                       }
                 white-space              Handles the white-space inside  p.one {
                                          an  element.  Values  can  be     white-space: nowrap;
                                          normal,  nowrap,  pre,  pre-line,
                                          pre-wrap                     }
                                                                       p.two {
                                                                         white-space: normal;
                                                                       }

                   2.26 CSS PROPERTIES FOR LISTS

                         Property                                           Description
                 list-style               Shorthand property for setting list-style-type, list-style-position, and list-style-image.


                 list-style-type          Specifies the type of marker (bullet, number, etc.) for list items.

                 list-style-image         Replaces the marker with an image.

                 list-style-position      Specifies the position of the marker relative to the list item text.


                   2.27 CSS PROPERTIES FOR TABLE

                         Property                                           Description

                 border                   Defines the border for the table, rows, or cells.
                 border-collapse          Specifies whether table borders should collapse into a single border or be separated.


                 border-spacing           Sets the distance between the borders of adjacent cells when border-collapse is set to
                                          separate.


                                                                                Website Building Using HTML and CSS  205
   202   203   204   205   206   207   208   209   210   211   212