• Archives

  • AddThis Social Bookmark Button

    Add to Technorati Favorites

  • Simple css coding

    By krates | December 8, 2007

    Html was designed to display information but it does not have any style in the need of style they designed css

    Cascading style sheets

    Which save a lot of coding work

    Syntax

    The syntax is very easy and made up of three parts

    selector {property: value}

    For ex

    body {
    color: red;
    }
    
    

    For using css with html you have to declare class in html for the element you want to do css coding

    <p class="example">
    
    This paragraph can not be changed but style can be:D
    </p>

    In css you will write

    p.exapmle{

    text-align: center;

    }

    This will center the text

    Thanks

    Krates

    Share and Enjoy:
    • Digg
    • del.icio.us
    • Facebook
    • NewsVine
    • Reddit
    • StumbleUpon
    • YahooMyWeb
    • Google Bookmarks
    • Yahoo! Buzz
    • TwitThis
    • Live
    • LinkedIn
    • Pownce
    • MySpace

    Topics: CSS | No Comments »

    Related Links:

    Comments

    Security Code: