CSS Blockquote Styling

The (x)html tag blockquote is generally used for, surprise, block-level quotes. For such a useful tag, it’s kind of plain looking, don’t you think? Why not spice it up a bit with some CSS?

This is an example blockquote, after applying some styling. Make something similar, or do your own thing.

Like my blockquote styling? I’ll show you how it’s done.

Here is a CSS rule that outputs a similar result:

blockquote {
margin:22px 40px;
padding:3px;
color:#575757;
padding: 0 50px;
background: transparent url("images/blockquote.gif") no-repeat 0 0;
}

You will need a “quote-mark” image of about 32×32 pixels for this to work correctly. To make one yourself, create a new image and type a #e5e5e9 quote-mark into it.

Of course, you may want to tweak the color values and spacing so it fits into your template correctly.

The blockquote is one of the bloggers’ most-used tags. It’s a great way to quote an excerpt from a post you’re linking to, as I do frequently.

  • Pingback: CSS Pullquotes | Webmaster-Source

  • http://askthetrainer.com Personal Trainer

    This is great, but how do you put a quote at the end?

  • http://none d1mm

    wtf is upadding? :D

    • http://www.webmaster-source.com Matt

      Oops. :)

      *fixed

  • http://KipMckean.org Love Bomb

    I notice that here as well as http://www.designmeme.com/articles/csscurlyquotes/ everyone is great at getting the leading first opening quote. But the ending quote is missing on this site as well as the other.

    Getting the spacing just for for the end quote is a bit of a bear.

  • http://www.webdesignerslog.com Websedignerslog

    Thanks for sharing these css styles … I’m looking for some gr8 one…

  • http://seojaguars.com seo jaguars

    can explain with me how i can edit styling that?