Page 48 - PortGPT_V2.1_C8_Flipbook
P. 48

You can also use the 6 digits hexadecimal code in place of colour name. For example, the hexadecimal
                  code #000000 represents the black colour and #FFFFFF represents the white colour. For example:

                  body{background-color: #000000;}

                  You can also set an image as background of a web page by using the background-image property of
                  CSS in the following manner:

                  body{background-image:url("background.jpg");}


                         BACKGROUND COLOR


                  The Background Color property of style sheet is used to change the background colour of an element.
                  Syntax to apply background colour in CSS is as follows:

                      <H1 STYLE=“background-color:Name of the Colour;”>Text</H1>



















                         CSS BORDER


                  The CSS border properties enable to specify the style, width and colour of a border.


                       Border Style
                  The ‘border-style’ property specifies the outline style of border. Some of the outline styles of border

                  are:

                                 Name of th e                                Look of Border Style
                                 Border Style       De nes
                                  Dotted       Dotted Border
                                  Dashed       Dashed Border
                                  Solid        Solid Border
                                  Double       Double Border
                                  Groove       3D Grooved Border
                                  Ridge        3D Ridged Border
                                  Inset        3D Inset Border
                                  Outset       3D Outset Border
                                  None         No Border
                                  Hidden       Hidden Border


                  46    Premium Edition-VIII
   43   44   45   46   47   48   49   50   51   52   53