I’ve been playing with around with the styling of <blockquotes> recently, so I thought I’d share a few tips on making a better looking blockquote or using CSS to add a little functionality. Here’s my demo page. Take a look at it to see what I’m talking about.
Number one is a practical use of content: and :after. Since using cite in a blockquote doesn’t actually make anything appear on your page, let’s add some CSS to do it for us. So you’re blockquote starts like this:
<blockquote cite="http://lipsum.com">
and the css looks like this
blockquote:after{content: " (" attr(cite) ")";display:block;}
This will just make your cite appear after the blockquote in parenthesis.
If you’d like to try it a different way, check out number two. This method will highlight the blockquote upon hover and then show your cite.
blockquote:hover{background:#FFF394;}
blockquote:hover:after{content: " (" attr(cite) ")";display:block;font-size:10px;}
Number three is just a little use of padding, border, and background color to make your blockquotes stand out: blockquote{padding:10px;background:#FFF394;border:1px dashed #8F5656;}
Number four again makes use of content to add quotes, without modifying the blockquote at all. So your blockquote can look like this
<blockquote>Lorem ipsum dolor sit amet, consectetuer adipiscing elit...</blockquote>
and your CSS can add the open and close quotes.
blockquote{line-height:17px;}
blockquote:before{content:open-quote;font-family:georgia;font-size:20px;}
blockquote:after{content:close-quote;font-family:georgia;font-size:20px;}line-height so larger quotes don’t throw off the top and bottom lines of the blockquote. Also try a typeface like Georgia for some stylish quotes.
Number five is very similar to the way I style my blockquotes on pixelspread. Just a simple background image of an open quote
blockquote{background:url("quotebg.png") no-repeat;padding:5px 0px 0px 30px;margin:10px;}
Be sure to adjust the padding, so your quote isn’t overlapping your background.
Number six achieves the look as number five, but without the use of an image. The benefit being that no image needs to load, but you will have to add an open quote within your blockquote.
<blockquote><span>“</span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</blockquote>
blockquote{position:relative;margin:10px;padding:5px 0px 0px 30px;}
blockquote span{position:absolute;top:0px;left:8px;font-family:georgia;font-size:50px;}
Hello. I just want to say that I am still ultra new to web design but I want to thank you for using Textpattern. I installed it to my web space and compared to Wordpress, it is amazing. I do apologize for going off topic but I just had to thank you Matt.
Very useful list. I will have to let others know about it and go bookmark it…
www.siirler.biz/” title=“Aşk Şiirleri Aşk Sözleri”>Aşk Şiirleri Aşk Sözleri
Very good post. Made me realize I was totally wrong about this issue. I figure that one learns something new everyday. Mrs Right learned her lesson! Nice, informative website by the way.
Very good post. I realized that I was totally wrong on this issue. I think you learn something new every day. Mrs. Right learned its lesson! Nice, informative site by road.
These are generally set off from the text that precedes and follows them by also adding extra space above and below the quotation and setting the text in smaller type. Barring specific requirements, the format of the block quotation will ultimately be determined by aesthetics, making the quotation pleasing to the eye, easy to read, and appropriate for the particular writing task. Thanks.
Barring specific requirements, the format of the block quotation will ultimately be determined by aesthetics, making the quotation pleasing to the eye, easy to read, and appropriate for the particular writing task. Thanks.
Its gave them access to several megabytes of memory and removed the obligation to participate in the software virtual memory scheme. Thanks.
uotation pleasing to the eye, easy to read, and appropriate for the particular writing task. Thanks.
Hmm, noticed my About page disappeared. It is now back.
Using the big selection of possibilities, it’s going to not be tricky to come across the great camera for you Fifi 100mm Gold. Today, even the basic mobile phone has a decent camera in it, which means that just about any one is usually a photographer.
can save a person quite <a href=“http://www.sneakerscrazy.com/new-adidas-shoes-adidas-campus-c-496_505.html”><strong>Adidas Campus Vulce Shoes</strong></a> a fair amount of money. Another benefit is that instead of jostling <a href=“http://www.cheapuggsnowboot.com/ugg-adirondack-tall-5498-c-1.html”><strong>Ugg 5498</strong></a> through crowded stores, you
Very happy to see your article, I very much to like and agree with your point of view.
Using the big selection of possibilities, it’s going to not be tricky to come across the great camera for you Fifi 100mm Gold. Today, even the basic mobile phone has a decent camera in it, which means that just about any one is usually a photographer.
I found this blog by accident. Really glad I did though, I’ll be back from now on.
I really like this website, And hope you will write more ,thanks a lot for your information.
Hello!I am glad to here, Good Site! Thanks you! Ultrabook Notebook Tipis Harga Murah Terbaik Ultrabook Notebook Tipis Harga Murah Terbaik Tech Store berita teknologi Beauty tips Healthy Tips ekspresi
Josh Minnich
posted on Dec 30, 06:56 PMThis is definitely a great tutorial! I think I like the classic inserting the quotes as a background image at the top and then sometimes you can add it to the bottom right of the enclosed text if you’d like.