Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extra Blank Line After First Line in Paragraph

Status
Not open for further replies.

RexxSysProg

Programmer
Jul 2, 2004
205
US
I am having a problem with an extra blank line being inserted after the first line of my opening paragraph. This line has a large, bold leading letter in the first word, followed by normal sized letters. The problem happens only with the first line of each page (the only pargraph with the large, bold leading letter). All the other paragraphs (which don't have the large leading letter) have proper spacing.

Is there any way to fix this? Or is IE unable to handle that large letter's spacing properly and this can't be circumvented (without removing the large letter)

Code:
P.MyClass {
	PADDING-RIGHT: 95px; PADDING-LEFT: 55px; FONT-SIZE: 12pt; PADDING-BOTTOM: 5px; MARGIN: 0in 0in 0pt; PADDING-TOP: 5px; FONT-FAMILY: "Times New Roman"; margin-right: 13.5in}


<p class=MyClass><span style='font-size:28pt;font-family: "Typo Upright BT, Times New Roman"'>T</span></b>his is the first sentence in the first paragraph. 
Therefore, I am giving it a large opening letter &quot;T &quot;. However,
 I do not want the extra blank line coming after the first line. All of the
 other paragraphs that do not have the large first letter have proper 
line spacing after the first line.
 
Try dropping the line-height and letter spacing:
Code:
<style type="text/css">
P.MyClass {
    PADDING-RIGHT: 95px; 
    PADDING-LEFT: 55px; 
    FONT-SIZE: 12pt; 
    PADDING-BOTTOM: 5px; 
    MARGIN: 0in 0in 0pt; 
    PADDING-TOP: 5px; 
    FONT-FAMILY: "Times New Roman"; 
}
P.MyClass .FirstLetter{
	font-size:28pt;
	font-family: Typo Upright BT, Times New Roman;
	[b]line-height:22pt;
	letter-spacing:-4pt;[/b]
}
</style>

<p class=MyClass><span class="FirstLetter">T</span></b>his is the first sentence in the first paragraph.
Therefore, I am giving it a large opening letter &quot;T &quot;. However,
 I do not want the extra blank line coming after the first line. All of the
 other paragraphs that do not have the large first letter have proper
line spacing after the first line. </p>

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.

Enable Apps
 
You also appear to have a closing </b> tag in your example, but no corresponding opening <b> tag.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Hello, I looked at this in Photoshop, and it is correctly spaced as is. It just appears that there is a larger line space because the 'T' is very large and there is a lot of open space created. If you make the first letter just a little smaller, it may look less spaced out
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top