Hi Imar,
As you suggested, I looked at the CSS file for styles that could affect the whitespace. Instead of taking them out, I selectively commented out one style at a time, and then requested Default.aspx in the browser. I checked if the line spaces disappeared. If it line spaces did not disappear, I uncommented the style and the commented out the next style, and repeated the process. Eventually, the line spaces disappeared when the following style was commented out:
<code>
h6
{
font-size: 75px;
font-family: Trebuchet MS;
font-style: oblique;
font-weight: bold;
text-align: center;
padding: 0;
}
</code>
Why I had put "padding: 0;" there, I don't recall. But, why would this style cause the line breaks?
I decided to check the MasterPage because that is where I used the <h6> tag. Here's what I saw:
Code:
<header>
<h6>Kenai River Hale</h6>
</header>
But, I recalled that there is style for the <header> tag in the CSS file. It was
Code:
header
{
background-color: lightskyblue;
width: 844px;
height: 86px;
}
So, it appeared to me that the 'height' in the header style and the 'font-size' in the h6 style were causing the line breaks.
Through trail and error, I modified the header style as follows:
Code:
header
{
background-color: lightskyblue;
width: 844px;
height: 86px;
font-size: 75px;
font-family: Trebuchet MS;
font-style: oblique;
font-weight: bold;
text-align: center;
}
and deleted the h6 style.
The code in the MasterPage now became:
<header>
Kenai River Hale
</header>
It works.