CSS3 -psuedo class

I am trying to figure  out if I set up the style rule correctly for the following problem:
Create a drop-cap effect for the first letter in the first line of the first paragraph in the speech section by doing the following:
    Use first-of-type pseudo-class and first-of-letter pseudo-element
    Float the first letter on the left
    Set the font size and height length to 4em and 0.8 respectively
    Set the right margin to 0.3 em
    Set the right and bottom padding to 0.2 em
   Add a solid black border 0.02 em in width to the right and bottom edge of the letter

This is the code in my stye sheet.  Is the code correct?
        #speech > p:first-of-type:first-letter {
             float: left;
           font-size: 4em;
           line-height: 0.8em;
           margin-right: 0.3em;
             padding: 0em 0.2em 0.2em 0em;
           border-right: 0.02em solid black;
          border-bottom: 0.02em solid black;
}
cookiejarAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David S.Commented:
Yes, that code looks correct.

The ":first-letter" pseudo-element may be the least useful feature of CSS2 though. I very rarely see it used.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.