PullQuotes using CSS

FREE THOUGHT · FREE SOFTWARE · FREE WORLD

PullQuotes using CSS

CSS, no javascript pullquote not blockquoteI looked at a lot of different ways to display quotes and pullquotes and even though the javascript solutions are very nice, esp. the 456bereastreet.com solution, I decided to just use CSS (Keep It Simple Stupid).


Heres what it looks like:

CSS, no javascript pullquote not blockquote

I discovered the “q” tag and tried it out, once it validated as

Yes thats XHTML 1.0 Strict. I also checked it with Firefox 1.0*-2.0* and IE 6.0.2*-the new IE 7.0. It also renders perfectly in Opera, Mozilla, and Netscape. Once I learned all that I was completely sold!

Example XHTML:


I can go to bat for them and make it a win-win-win

"I put a renewal plan together last year for one of my clients

our clients are the ones who really reap the greatest benefits!

"I have to be sure that I can get all of the ..sometimes I can go to bat for them and make it a win-win-win etween!"

Example CSS:


q {float:left; width:18em; display:block; margin:0.25em 0.75em 0.25em 1em; padding:0.5em; border:3px double #CCC; border-width:3px 0; color:#333; background-color:#f0f0f0; text-align:center; font:italic 1.3em/1.3 Georgia;}
q.q2 {float:left; width:9em; display:block; margin:0.25em 0.75em 0.25em 1em; padding:0.5em; border:3px double #CCC; border-width:3px 0; color:#333; background-color:#f0f0f0; text-align:center; font:italic 1.3em/1.3 Georgia;}

Links

Pure CSS (no js)

  1. Inline BlockQuote Images
  2. Semantic Pullquotes

Good Javascript Examples:

  1. 456bereastreet auto pullquotes

For WordPress:

  1. wp-javascript-pull-quotes/

«
»

Leave your own comment

Reader Comments

  1. Stuart Robertson ~

    Nice work. :) I thought you’d like to see my approach as well: http://www.designmeme.com/articles/csspullquotes/

  2. Pius ~

    Really well done, thanks!

Go for it!


It's very simple - you read the protocol and write the code. -Bill Joy

HTML | DCMI | GRDDL | XOXO | XDMP | XFN | DOM | XML | XHTML 1.1 Strict | CSS 2.1 | W3C

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed. "Apache" is a trademark of The ASF. NCSA HTTPd.
UNIX ® is a registered Trademark of The Open Group. POSIX ® is a registered Trademark of The IEEE.

Site Map | Contact Webmaster | Glossary | License and Disclaimer | Terms of Service

↑ TOP
Main