SitePoint Sponsor

User Tag List

Results 1 to 25 of 45

Threaded View

  1. #1
    SitePoint Addict
    Join Date
    Nov 2012
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    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 www.c5d.co.uk/c5dstyle.css and the web page is www.c5d.co.uk/scotland.php

    Thanks

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


Bookmarks

Posting Permissions

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