Solved

html blockquote

Posted on 2011-09-06
3
278 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
3 Comments
 
LVL 4

Accepted Solution

by:
yesthatbob earned 500 total points
Comment Utility
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
Comment Utility
Great thanks!

HNM
0
 
LVL 8

Expert Comment

by:Jen0910
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now