Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Problem with closing pull quote in IE.

Posted on 2010-11-30
2
Medium Priority
?
411 Views
Last Modified: 2012-05-10
I'm having problems in IE with a pull quote method I found on the web. The problem is, if the quote is more than 2 lines, the closing quote will disappear in IE. Everything remains ok in Firefox, Chrome, and Safari. Just not in IE.

I have pasted the page below. Or you can see it here: http://greddin.com/pullquotes.html.

The first quote should look ok, but the second longer quote will not display the closing quote. Can anyone help me modify my code to fix this?

Thank you,
-Greg
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Pullquotes</title>
<style type="text/css">
blockquote {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-style: italic;
	width: 18em;
	margin: 10em auto 2em auto;
	text-align: left;
	text-indent: 25px;
	background: url(quotes1.png);
	background-position: 0 2px;
	background-repeat: no-repeat;
}

blockquote p {
	line-height: 1.8;
	margin: 0;
	display: inline;
	padding-right: 24px;
	background: url(quotes2.png);
	background-position: bottom right;
	background-repeat: no-repeat;
}

</style>
 </head>

<body>
<blockquote cite="cite1"><p>Shoot for the moon. Even if you miss, you'll land among the stars.</p></blockquote>
<br/>
<blockquote cite="cite2"><p>Shoot for the moon. Even if you miss, you'll land among the stars. Shoot for the moon. Even if you miss, you'll land among the stars.</p></blockquote>
</body>
</html>

Open in new window

0
Comment
Question by:greddin
2 Comments
 
LVL 17

Accepted Solution

by:
GreatGerm earned 2000 total points
ID: 34242660
Why not just use something like this?  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Pullquotes</title>
<style type="text/css">
blockquote {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-style: italic;
	width: 18em;
	margin: 10em auto 2em auto;
	text-align: left;
	background: url(quotes2.png) no-repeat bottom right;
	padding: 2px 15px 2px 2px;
}

blockquote:first-letter {
	background: url(quotes1.png) no-repeat left top;
	padding: 10px 2px 10px 25px;
}

</style>
 </head>

<body>
<blockquote cite="cite1">Shoot for the moon. Even if you miss, you'll land among the stars.</blockquote>
<br/>
<blockquote cite="cite2">Shoot for the moon. Even if you miss, you'll land among the stars. Shoot for the moon. Even if you miss, you'll land among the stars.</blockquote>
</body>
</html>

Open in new window

0
 

Author Closing Comment

by:greddin
ID: 34251457
Thank you for the help. Works great.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
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…
Suggested Courses

886 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