Log in

View Full Version : Resolved Psuedo-Element Not Working



marain
03-22-2014, 10:39 PM
Hi Folks,

My second 2014 question (first ever for this Forum);
<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.

traq
03-22-2014, 10:58 PM
p.first-letter

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

p::first-letter

marain
03-22-2014, 11:12 PM
What took you so long? (Just kidding.)

Thanks.

A.

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

traq
03-22-2014, 11:42 PM
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].