<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webmaster-Source &#187; blockquote</title>
	<atom:link href="https://www.webmaster-source.com/tag/blockquote/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Thu, 24 Aug 2017 02:01:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Pure CSS Blockquote Styling</title>
		<link>https://www.webmaster-source.com/2012/04/24/pure-css-blockquote-styling/</link>
		<comments>https://www.webmaster-source.com/2012/04/24/pure-css-blockquote-styling/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 11:53:50 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[(x)html]]></category>
		<category><![CDATA[blockquote]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4604</guid>
		<description><![CDATA[Ever since the days of print, it has been common to style quotations and cover blurbs with oversized quotation marks floating along the left side. The practice is alive and well in the internet age, though the technique usually used is a background image. It&#8217;s 2012, already! Why are we still relying on pictures of [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Ever since the days of print, it has been common to style quotations and cover blurbs with oversized quotation marks floating along the left side. The practice is alive and well in the internet age, though the technique usually used is a background image.</p>
<p>It&#8217;s 2012, already! Why are we still relying on pictures of typographical symbols? Let&#8217;s do it with the power of CSS!</p>
<p><a href="http://www.webmaster-source.com/static/demos/pure-css-blockquotes.php"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter  wp-image-4605" title="Yep, this is 100% CSS-styled text...that I took a screenshot of. Not ironic at all. ;)" src="//www.webmaster-source.com/wp-content/uploads/2012/04/pure-css-blockquotes.png" alt="" width="614" height="249" /></a>Let&#8217;s start with some simple HTML. Before we can style anything, we need to create our blockquote. While we&#8217;re at it, a <code>cite</code> element is a nice, semantic way to attribute the quote to its originator.<span id="more-4604"></span></p>
<pre class="brush: xml; title: ; notranslate">
&lt;blockquote&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eget leo nunc, nec tempus mi? Curabitur id nisl mi, ut vulputate urna. Quisque porta facilisis tortor, vitae bibendum velit fringilla vitae! Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eget leo nunc, nec tempus mi? Curabitur id nisl mi, ut vulputate urna. Quisque porta facilisis tortor, vitae bibendum velit fringilla vitae!
&lt;cite&gt;Somebody famous&lt;/cite&gt;
&lt;/blockquote&gt;
</pre>
<p>Now some CSS to provide some basic styling for the blockquote. Leaving the default browser style isn&#8217;t going to look great, so we&#8217;ll use a largish serif font with a little extra line spacing. And a slightly lighter color. Extra-dark grey adds a subtle variation from your main body text.</p>
<pre class="brush: css; title: ; notranslate">
blockquote {
font-family: Georgia, serif;
font-size: 18px;
font-style: italic;
width: 500px;
margin: 0.25em 0;
padding: 0.25em 40px;
line-height: 1.45;
position: relative;
color: #383838;
}
</pre>
<p>Now for the fun part: the giant quotation mark. The <code>:before</code> pseudo-element can be used to dynamically insert content before the text of the element, and style the content you insert. This is great for decorative text, like stylistic curly-quotes. The trick is to use an escaped hexadecimal representation of the desired character, and a little bit of fiddly positioning stuff to make it sit in the right position.</p>
<pre class="brush: css; title: ; notranslate">
blockquote:before {
display: block;
content: &quot;\201C&quot;;
font-size: 80px;
position: absolute;
left: -20px;
top: -20px;
color: #7a7a7a;
}
</pre>
<p>That&#8217;s the most difficult part. You may have to experiment with the size and positioning until it looks right, though. Once everything looks nice, you can apply the same technique to style the citation. Using the <code>:before</code> pseudo-element, you can insert an em dash and a space before the text.</p>
<pre class="brush: css; title: ; notranslate">
blockquote cite {
color: #999999;
font-size: 14px;
display: block;
margin-top: 5px;
}

blockquote cite:before {
content: &quot;\2014 \2009&quot;;
}
</pre>
<p>Easy, isn&#8217;t it? The effect should work in all modern browsers, and IE8. (IE8 will only process the pseudo-element if your document has a doctype declared, but you should have one of those already&#8230;) In browsers that don&#8217;t support it, the added content simply won&#8217;t appear, leaving the main text of the blockquote (and the citation) intact. The other styling will remain, of course, so it should still look good enough.</p>
<p>You can <a href="http://www.webmaster-source.com/static/demos/pure-css-blockquotes.php">see a live demo here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2012/04/24/pure-css-blockquote-styling/feed/</wfw:commentRss>
		<slash:comments>56</slash:comments>
		</item>
		<item>
		<title>CSS Pullquotes</title>
		<link>https://www.webmaster-source.com/2008/04/23/css-pullquotes/</link>
		<comments>https://www.webmaster-source.com/2008/04/23/css-pullquotes/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 12:02:36 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[blockquote]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[pullquotes]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=514</guid>
		<description><![CDATA[Pullquotes are used in most magazines, and many websites have adopted the use of them. They are named thus because they are short excerpts pulled from the article, and highlighted to draw your attention. This technique it great for long, wordy articles, since you can break-up the flow of the text a little, and highlight [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Pullquotes are used in most magazines, and many websites have adopted the use of them. They are named thus because they are short excerpts pulled from the article, and highlighted to draw your attention. This technique it great for long, wordy articles, since you can break-up the flow of the text a little, and highlight a noteworthy part of the text.</p>
<blockquote class="rpullquote"><p>They are named thus because they are short excerpts pulled from the article, and highlighted to draw your attention.</p></blockquote>
<p>Pullquotes on websites are generally <a href="http://www.webmaster-source.com/2008/04/16/css-blockquote-styling/">blockquotes</a> with a specific class assigned. Some CSS magic is applied to the class, and you have your pullquotes set-up.</p>
<p>I don&#8217;t use pullquotes too often, but I have classes defined nevertheless. (See my example pullquote above? It will look like a plain, unstyled blockquote if you&#8217;re reading this in an RSS reader. Visit the permalink page for the full effect.)</p>
<p>Here is my CSS:</p>
<pre>.rpullquote, .lpullquote {
padding: 5px;
width: 202px;
margin-top: 8px;
margin-bottom: 8px;
border-top-width: 2px;
border-bottom-width: 2px;
border-top-style: solid;
border-bottom-style: solid;
border-top-color: #990100;
border-bottom-color: #990100;
font-size: 15px;
text-align: center;
line-height: 1.1em;
font-family: Arial, Helvetica, sans-serif;
font-style: italic;
font-weight: normal;
background-image:none;
}

.rpullquote {
float: right;
margin-left: 10px;
}

.lpullquote {
float: left;
margin-right: 10px;
}</pre>
<p>As you can see, the first rule controls the visual aspect of the pullquotes, and the following two are used to float the pullquotes to either the left or the right. Feel free to tweak the styles to fit your stylesheet better.</p>
<p>Now, whenever you want to create a pullquote, just follow these steps:</p>
<ol>
<li>Copy the text you want to quote.</li>
<li>Paste it into a new blockquote tag.</li>
<li>Add <code>class="rpullquote"</code> or <code>class="lpullquote"</code> (right and left, respectfully) to the tag.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2008/04/23/css-pullquotes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Blockquote Styling</title>
		<link>https://www.webmaster-source.com/2008/04/16/css-blockquote-styling/</link>
		<comments>https://www.webmaster-source.com/2008/04/16/css-blockquote-styling/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 12:00:16 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[blockquote]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=505</guid>
		<description><![CDATA[The (x)html tag blockquote is generally used for, surprise, block-level quotes. For such a useful tag, it&#8217;s kind of plain looking, don&#8217;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? [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>The (x)html tag <code>blockquote</code> is generally used for, surprise, block-level quotes. For such a useful tag, it&#8217;s kind of plain looking, don&#8217;t you think? Why not spice it up a bit with some CSS?</p>
<blockquote><p>This is an example blockquote, after applying some styling. Make something similar, or do your own thing.</p></blockquote>
<p>Like my blockquote styling? I&#8217;ll show you how it&#8217;s done.</p>
<p>Here is a CSS rule that outputs a similar result:</p>
<p><code>blockquote {<br />
margin:22px 40px;<br />
padding:3px;<br />
color:#575757;<br />
padding: 0 50px;<br />
background: transparent url("images/blockquote.gif") no-repeat 0 0;<br />
}</code></p>
<p>You will need a &#8220;quote-mark&#8221; image of about 32&#215;32 pixels for this to work correctly. To make one yourself, create a new image and type a #e5e5e9 quote-mark into it.</p>
<p>Of course, you may want to tweak the color values and spacing so it fits into your template correctly.</p>
<p>The blockquote is one of the bloggers&#8217; most-used tags. It&#8217;s a great way to quote an excerpt from a post you&#8217;re linking to, as I do frequently.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2008/04/16/css-blockquote-styling/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.webmaster-source.com @ 2026-06-09 02:58:14 by W3 Total Cache
-->