?
Solved

html blockquote

Posted on 2011-09-06
3
Medium Priority
?
292 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 2000 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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…
Suggested Courses

762 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