Solved

Problem with closing pull quote in IE.

Posted on 2010-11-30
2
403 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

15 Experts available now in Live!

Get 1:1 Help Now