Solved

html blockquote

Posted on 2011-09-06
3
287 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML5 save .Dat to server side 20 45
Decoding Special HTML Characters using Javascript? 2 23
tutorial for ebay api 3 32
Center div containing a script 6 14
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

813 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