In Association with Amazon.in   Flipkart

Friday, July 5, 2013

CSS Styles For FONT, Background, Box Formating Styles

Font Attributes

  •     Font-size
  •     Font-weight  Bold ( 100  -  1000 )
  •     Font-family    (Arial , courier , Times New Roman )

Text Attributes

  •     Text-align 
  •     Word-spacing
  •     Letter-spacing
  •     Color
  •     Text-decoration (underline, overline,line-through,none)
  •     Text-height

Background

  •     Background
  •     Background-color
  •     Background-image
  •     Background-repeat
  •     Background-position

Box

  •     Width
  •     Height
  •     Border
  •     Margin
  •     Padding
  •     Position
  •     Top
  •     Bottom
  •     Left
  •     Right
  •     Z-index
  •     Float


Example-1:

<html>
  <head>
         <style>
               .abc{
                    font-size      :20;
                    border         : 1 solid blue;
                    word-spacing   :2em;
                    letter-spacing :2em;
                    Text-decoration:underline;
                                                  (overline,line-through,none)
                    color          :red;
                    text-align     :right;
                                            (left , center)
                    line-height    :20;
                    }
         </style>
  </head>
  <body>
         <p class="abc">  Welcome to Css      </p>
        
  </body>
</html>

No comments:

Post a Comment


Related Posts Plugin for WordPress, Blogger...