It is definitely an oldy, but it is an oldy I really like. I first encountered it at AnnieBlueSky's BlogU. It is an easy trick to let your post jump out of the screen, by showing an interesting quote, that gives the essential idea of the post itself.
Sometimes text needs a little help to make it more interesting. Graphics works miracles in this department. But often you don't have a graphic that you can use. Jazzing up your text is an excellent option.
The pullquotes are easy to implement: you only have to add some CSS to your template, so strictly speaking it is not even hacking. Or maybe we could call it soft-hacking.
The only thing you have to do is add a class called "pullquote" to your template, and configure it any which way you like. In your post, add a <span class="pullquote"> around the text that you want to show in the box, and there you go.
This is the CSS that I added to my template. As you see, I defined color variables, so that I can set the color from my Fonts and Colors page.
.pullquote {
width: 15%;
background-color:$pullquoteBgColor;
background-image: url(http://home.planet.nl/~hansoosting/images/quotes_grey.gif);
background-repeat: no-repeat;
color:$pullquoteTextColor;
float: right;
border:1px solid $borderColor;
font-weight:bold;
line-height:120%;
padding:40px 10px 10px 10px;
margin-top:10px;
margin-left:10px;
}
Color Variables that need to be defined are:
pullquoteBgColor, pullquoteTextColor and borderColor
Look Up Words as You Compose
3 weeks ago

This is what people say:
great!i've been looking fro exactly this one!
Where do I place the CSS code? I keep getting an error:
"Invalid variable declaration in page skin: Variable is used but not defined. Input: pullquoteBgColor"
Jane, in Blogger Beta you can declare variables for colors and fonts. See my post on The Color Scheme for more details.
You have to add the CSS-code to your style-sheet, AND you have to declare the variables pullquoteBgColor, pullquoteTextColor and borderColor in the top part of the skin.
Or remove the $pullquoteBgColor and replace it with a hard-coded color value, such as #efa9e3.
Oh gosh. Thank you for replying. Obviously, I don't understand very much of this. Thank you for helping me understand.
Thanks for yet another excellent hack Hans!=D
Angel, I am glad you like them! Stay in touch!
Thanks Hans, you're world man!!!
Beside pullquotes, I'm using your 3-column template. It's look nice! Take a peek at http://hackablog.blogspot.com
Hi LuqLuq, I am glad that my hacks and ideas are usefull to you and your readers! Please stay in touch.
Hi Hans,
Thanks for the PullQuote :)
I took the liberty to modify the image into a smaller version.
Just in case anyone need a smaller one, it can be downloaded from following address:
http://fontalis.com/images/quotes_grey_small.gif
David
月夜天翔, I am glad it is usefull to you. Did you also notice my DropCasp tutorial? I am sure you will like that one too.
This is nice. Adds a certain look to the blog.
Swipe, I saw it in action on your Blog: nice layout!
Thanks Hans! I definitely take that as a compliment.
Very sorry, but I still don't know where to paste the CSS code. Where is the style sheet you are talking about?
@ieat: the CSS-stylesheet is the top part of your template, between the <style> and </style>-tags. Add the css-code there.
I just really don't know what I did wrong. Please help.
I paste the following tags to the posts section in the template:
.pullquote {
width: 15%;
background-color:#99aadd;
background-image: url(http://bp0.blogger.com/_LuJjdxgayeY/RX_Lkr0xB6I/AAAAAAAAAKI/_6RV8DnWkhQ/s200/quotes_grey.gif);
background-repeat: no-repeat;
color:#cccccc;
float: right;
border:1px solid #E895CC;
font-weight:bold;
line-height:120%;
padding:40px 10px 10px 10px;
margin-top:10px;
margin-left:10px;
}
and in the actual post ( please note that I had to remove the "<" and ">" out becos the system woulndt allow):
span class="pullquote"
Type your quote here
/span
But when I click preview, there's no change. It was just a plain sentence.
Sam, you have to put the .pullquote styling definitions not in a post, but in the <b:skin>-part of your template.
The content of your pullquote is entered in the post like this: <span class="pullquote">This is a pullquote</span>
@Hans: Sorry for the confusion. What I meant was, I put the code in the " Posts " section of the template ( that defines the posts border, paddling, etc).
And so they are definitely between b:skin and /b:skin
I tried to move them to other parts between the b:skin, but still no change.
Sam, leave a link to our blog and I'll take a look
Thanks Hans. I like this nice detail on my blog.
@Rachel: you are welcome!
Hi Hans,
I was able to do the drop caps and the peek a boo feature in my template. but i was stock in the pull quotes and the message board feature. can you do it for me Hans?
tnx for this one, hans! i'm sort of tweaking this up a bit for my blog, but i haven't got much time as of the moment to actually do so. nevertheless, it looks good on my template. tnx again!
I feel like a real idiot, but I can't find the "style" part of the template. I even copied and pasted the html into another document and did a search. Can I add it? Or do I need a different template?
thanks a lot.
i like it. but now, i need to figured out about the color and etc, etc..
it is really confusing sir. how can i add this codes? i already installed it between b:skin /b:skin but still nothing happened ? where should i put the color codes ?? can you show me the CSS that you used in your template? i'm sorry because i'm not good in defining codes.. thanks also for this hac!
Good Job! :)
Share your thoughts!
Feel free to post your questions, remarks and comments here. Moderation is set for this blog, so your comments will appear in due time.
Look who's linking here!
0 Backlinks point here