#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    112
    Rep Power
    6

    Formatting multiple paragraphs


    If you have multiple <p> in you document, how do you format them individually with CSS? Newbie here just trying to figure it out.
  2. #2
  3. For POny!
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Location
    Amsterdam
    Posts
    416
    Rep Power
    115
    If you want to make them unique give them an id or use the unnique context they are in.


    Code:
    <p id="googleisyourfriend">
    some text
    </p>
    in css
    Code:
    #googleisyourfriend{color:red;}
    or
    Code:
    <div id="container">
        <p> google seems to know all kinds of stuff</p>
    </div>
    in css
    Code:
    #container p{color:red;}
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    112
    Rep Power
    6
    thanks

IMN logo majestic logo threadwatch logo seochat tools logo