Solved

html blockquote

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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. …
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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…

717 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