Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Drop Caps and Quotes in CSS?

Drop Caps and Quotes in CSS?
Thread Tools
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Feb 2, 2005, 09:01 AM
 
Hi,

What are some of the techniques for achieving dropcaps or oversize quotes? I'm trying to achieve something like this:

http://home.earthlink.net/~headbirth...ard/Quotes.jpg

I used a table to get this but, the table seems to do some weird shifting in IE.

A CSS solution would be ideal.

Any brilliant ideas?

Thanks!
     
Dedicated MacNNer
Join Date: Nov 2004
Location: Stockholm, Sweden
Status: Offline
Reply With Quote
Feb 2, 2005, 09:52 AM
 
Originally posted by headbirth:
What are some of the techniques for achieving dropcaps or oversize quotes?

A CSS solution would be ideal.
there's a section in Dan's book (the one i suggested in your other thread), about that exact thing.
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Feb 2, 2005, 10:42 AM
 
The cleanest way to do oversize quotes, unfortunately, is to use :before and :after selectors, which don't work in IE/Windows (unless you use the IE7 JavaScript routines). IE doesn't break if you use them, but it won't display the quotes either.

As for drop caps, the most popular technique is to use :first-letter with the paragraph where you want to make the drop cap ( such as p#article:first-letter), set its display to block, float it to the left, and crank up the font-size. Something like this:
Code:
p#article:first-letter { display: block; float: left; font-size: 500%; }
Once again, IE isn't as good here as it could be (unless you use IE7), but the basics at least should work.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Feb 2, 2005, 12:08 PM
 
Thanks once again guys ... I'll defineetly check out the book when I get a chance.

I think I'll have to rethink this again and try out Milleniumns suggestion.

I had never heaardd of the :before & :after selectors...

Hmmm ... IE seems to perpetually be the problem.
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Feb 2, 2005, 01:30 PM
 
I just ran across this site and thought I would share it:

http://www.mikepick.com/news/archive...s-and-the-web/
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Feb 3, 2005, 08:42 AM
 
Originally posted by headbirth:
I had never heaardd of the :before & :after selectors...

Hmmm ... IE seems to perpetually be the problem.
They're not very well-known, precisely because IE doesn't work with them. That's really a shame, too, because you can actually achieve some very powerful effects. Dean Edwards (maker of the godlike IE7 JavaScript routines) has a technique for using them to put rounded corners on any ordinary without changing the HTML at all.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:07 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2