Posted By

neal_grosskopf on 03/30/09


Tagged

css html


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

neal_grosskopf


CSS Drop Caps Without Unnecessary HTML Elements or Classes


 / Published in: CSS
 

URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=41

Learn how to create drop caps using CSS and no extra HTML markup in this short tutorial.

  1. body p:first-child:first-letter
  2. {
  3. background: #990000;
  4. border: 4px double #ffcc00;
  5. color: #ffffff;
  6. float: left;
  7. font-family: "Times New Roman", Times, serif;
  8. font-size: 3em;
  9. font-weight: bold;
  10. margin: 7px 10px 0px 0px;
  11. padding: 10px;
  12. text-transform: uppercase;
  13. }

Report this snippet  

You need to login to post a comment.