Solved

Problem with closing pull quote in IE.

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
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…

832 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