STYLE CODE:
 

I) To change the appearance, and layout, etc. of text within certain areas of the page, and add backgrounds, use the following:

            a) <STYLE>
                P {MARGIN-LEFT: 50PX}
                </STYLE>

            b) <STYLE>
                 P {BACKGROUND:  URL ("yourfile.jpg")}
                </STYLE>

            c) <STYLE>
                 P {BACKGROUND-COLOR: white}   The RGB value can be used, also.
                </STYLE>

            c) <STYLE>
                P {TEXT-ALIGN: justify} The values are left, center, right, and justify.
                </STYLE>

            d) <STYLE>
                P {FONT-FAMILY: "billboard"}
                </STYLE>

II) The P code is for paragraph, which is placed at the beginning, and ending of the line(s), where  the effect will appear.

III) There are many other variations of the above examples.

IV) In the following example, the margins for the left, and right margins are set to 50 pixels, and the text is justified for the paragraph:

       a) <head>
           <title>style</title>
           <style type="text/css">
           <!--
            DIV {margin-left: 50px; margin-right: 50px}
            P      {text-align: justify}
            -->
            </style>
        </head>
 

       b) <body>

<DIV><P>Hello, my name is Bill, and welcome to my webpage.  I have many interesting photographs for you to download.  My prices are reasonable, and I hope you enjoy the pictures.  Thank you.<DIV></P>

        <body>

       c)
 Hello, my name is Bill, and welcome to my webpage. I have many interesting photographs for you to download. My prices are reasonable, and I hope you enjoy the pictures.  Most of the items are from scenic locations from across the country.  Thank you very much.
 

V) "text/css" was used for the older browsers, which may not recognize the style code.

VI) I used the DIV, and P codes.  If the P (paragraph) code was used for all the styles, the whole page would have been affected, as the above paragraph, since there are other <P> codes within my page.




COPYRIGHT 2002   ALL RIGHTS RESERVED BY J.A.M.
HTML CODES ON THE INTERNET
SAINT LOUIS, MISSOURI