• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 23. Cascading Style Sheets > Style Sheet Tips and Tricks

23.8. Style Sheet Tips and Tricks

23.8.1. Style Sheet MIME Types

Some authors have reported trouble with gettting their ISPs to correctly serve up CSS files. Apparently, with some Web servers, .css is mapped to the MIME-type x-application/css, or "Continuous Slide Show," instead of the MIME-type text/css. The style sheet gets mangled into something else. If you find you're having this problem, you'll need to contact your ISP and explain the problem. Because .css is now an IANA-registered MIME-type, service providers really have no excuse for not supporting it for style sheets. If they refuse to fix it and style sheets are a necessary part of your site, you may have to consider switching ISPs.

23.8.2. Creating a Drop Cap

Although a pseudo-element called :firstletter exists, it is not very well supported as of this writing. In the meantime, you can create a drop cap using a <span> to isolate the first letter of the paragraph.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint