SitePoint Sponsor

User Tag List

Results 1 to 25 of 45

Threaded View

  1. #1
    SitePoint Addict
    Join Date
    Nov 2012
    0 Post(s)
    0 Thread(s)

    CSS Colour Query

    I am obviously doing something not quite right here.

    I am trying to colour a sentence with a shade of red.

    If I have in the syle sheet

    h1 {color:#ffffff; font-size: 19px; font-weight:bold;font-style:italic; text-align:center;}
    p2 {color:#cd0000; font-size: 15px;font-weight:bold;}
    h2 {color:#cd0000; font-size: 15px;text-decoration:underline;font-weight:bold;}
    p3 {color:#000080; text-decoration:none;}

    And this in the HTML <p2>C5D: (Certificates in 5 Days)</p2>

    It all works fine.

    If on the other hand I use p.2 etc
    and <P class="2">C5D: (Certificates in 5 Days)</p>

    It doesn't work

    What am I doing wrong ?

    The stylesheet is and the web page is


    Last edited by certificates; Dec 4, 2012 at 09:46. Reason: error in typing


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts