Solved

html blockquote

Posted on 2011-09-06
3
289 Views
Last Modified: 2012-05-12
Hi Experts,

I'd like to use a custom image for the quotation marks around text in a website.  I've never used blockquote before and who knows.. maybe it's the wrong way to do it.  But in the end I'd like to have custom quotation marks (png files) around the text.

I can make seperate divs around the text an place the custom quotation marks manually but I wonder if there is an easier way.  Anybody done this before?

Thanks,

HNM
0
Comment
Question by:HelpNearMe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
yesthatbob earned 500 total points
ID: 36489812
You can define the style of the blockquote tag in CSS:

 
blockquote { 
	background-image: url('myquotes.png');
	background-repeat: no-repeat;
	background-position: 10 10;
}

Open in new window


This will only allow for a single image, though. If you want separate starting and ending quotes, you'll have to use a separate div or image element strategically placed.
0
 

Author Closing Comment

by:HelpNearMe
ID: 36489858
Great thanks!

HNM
0
 
LVL 8

Expert Comment

by:Jen0910
ID: 36489904
Ive done exactly what you are looking to do before. I didn't use the blockquote tag though because i was looking to have 2 separate quote images like yesthatbob mentioned. I used the 1st quote as a background image in my div, and set the 2nd quote as an <img src...> element in my HTML to ensure it moved dynamically with the content i was quoting. It looks something like this:
#left-col {
	width:267px;
	padding-top:22px;
	float:left;
	text-align:left;
	background:url(images/quotes.png);
	background-repeat:no-repeat;
	background-position:0 0;
	}

Open in new window

And the HTML:
<div id="left-col">Content Quote.<br><img src="images/quotes2.png" align="right"></div>

Open in new window


Of course you can change the position/text styling to fit your needs.
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question