Results 1 to 4 of 4

Thread: Psuedo-Element Not Working

  1. #1
    Join Date
    Apr 2012
    Location
    Central New Jersey
    Posts
    138
    Thanks
    51
    Thanked 0 Times in 0 Posts

    Default Psuedo-Element Not Working

    Hi Folks,

    My second 2014 question (first ever for this Forum);
    Code:
    <style type="text/css">
    	p.first-letter {
    			color:red;
    			font-size: 200%;
    }
    is not working. Page where I'm trying it out is http://www.marainlaw.com/page.php?here=underagegambling. I've looked at it in both IE 11.0.4 and FF 27.0.1. W3C CSS validates. All help appreciated.

    A.
    Last edited by marain; 03-23-2014 at 12:10 AM.

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 517 Times in 503 Posts
    Blog Entries
    5

    Default

    p.first-letter
    Wrong identifier. The dot ( . ) specifies a class. Psuedo-elements are double-colons ( :: ):
    Code:
    p::first-letter

  3. The Following User Says Thank You to traq For This Useful Post:

    marain (03-22-2014)

  4. #3
    Join Date
    Apr 2012
    Location
    Central New Jersey
    Posts
    138
    Thanks
    51
    Thanked 0 Times in 0 Posts

    Default

    What took you so long? (Just kidding.)

    Thanks.

    A.

    P.S. I would mark this thread "resolved" if I knew how.

  5. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 517 Times in 503 Posts
    Blog Entries
    5

    Default

    you're welcome.

    If your question has been answered, please mark your thread "resolved":
    • On your original post (post #1), click [edit], then click [go advanced].
    • In the "thread prefix" box, select "Resolved".
    • Click [save changes].

Similar Threads

  1. Resolved Ajax loaded element not recognized in ajax post send(element)?
    By crobinson42 in forum JavaScript
    Replies: 6
    Last Post: 04-10-2012, 07:48 PM
  2. Replies: 1
    Last Post: 12-11-2011, 06:20 AM
  3. Replies: 0
    Last Post: 01-13-2008, 04:24 PM
  4. [DHTML + FSO] Psuedo Sockets
    By magicgavin in forum Submit a DHTML or CSS code
    Replies: 2
    Last Post: 10-23-2007, 05:59 PM
  5. Changing the first TR element to THEAD element
    By codeexploiter in forum JavaScript
    Replies: 3
    Last Post: 03-23-2007, 10:02 AM

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
  •