Alexander.Ambro
02-13-2007, 03:53 PM
I've posted before about this and found a way to avoid problem, but now I need to confront it. Everytime I set some text as <h1> in Mac Dreamweaver 8 it:
1) englarges the height of the the cell
2) boldens the text
Easy enough to set the <h1> in CSS so as to remove the bold, but when I set line height to "0" to restore the height, IN SAFARI ALONE it shifts the text up a pixel or two. I'm including the code for the entire table as well as the CSS for <h1> and the cell it's contained in (.abelianunderline). Many thanks to anyone who can explain how to remedy this browser-specific problem (in Firefox and IE, it's perfectly aligned in the center as always).
Please advise!
TABLE:
<table width="822" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="36" rowspan="2"></td>
<td width="750" height="40" class="abelianunderline"><h1>abelian art project</h1></td>
<td width="36" rowspan="2"> </td>
</tr>
<tr>
<td width="750" height="90" valign="top" class="navigation">|| <span class="style13">triptych</span> -:- <a href="episode1.html">episode</a> || <a href="artists.html">artists </a> || <a href="origin.html" class="navigation">origin</a> || <a href="mailto:abelianartproject@gmail.com">contact us</a> || </td>
</tr>
</table>
CSS
h1 {
font-family: Didot, "Book Antiqua";
font-size: 24px;
font-weight: normal;
color: #CCCCCC;
line-height: 0px;
}
abelianunderline {
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: none;
border-bottom-style: solid;
border-left-style: none;
border-top-color: #666666;
border-right-color: #666666;
border-bottom-color: #666666;
border-left-color: #666666;
font-size: 24px;
padding-left: 0px;
font-family: Didot, "Book Antiqua";
color: #CCCCCC;
1) englarges the height of the the cell
2) boldens the text
Easy enough to set the <h1> in CSS so as to remove the bold, but when I set line height to "0" to restore the height, IN SAFARI ALONE it shifts the text up a pixel or two. I'm including the code for the entire table as well as the CSS for <h1> and the cell it's contained in (.abelianunderline). Many thanks to anyone who can explain how to remedy this browser-specific problem (in Firefox and IE, it's perfectly aligned in the center as always).
Please advise!
TABLE:
<table width="822" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="36" rowspan="2"></td>
<td width="750" height="40" class="abelianunderline"><h1>abelian art project</h1></td>
<td width="36" rowspan="2"> </td>
</tr>
<tr>
<td width="750" height="90" valign="top" class="navigation">|| <span class="style13">triptych</span> -:- <a href="episode1.html">episode</a> || <a href="artists.html">artists </a> || <a href="origin.html" class="navigation">origin</a> || <a href="mailto:abelianartproject@gmail.com">contact us</a> || </td>
</tr>
</table>
CSS
h1 {
font-family: Didot, "Book Antiqua";
font-size: 24px;
font-weight: normal;
color: #CCCCCC;
line-height: 0px;
}
abelianunderline {
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: none;
border-bottom-style: solid;
border-left-style: none;
border-top-color: #666666;
border-right-color: #666666;
border-bottom-color: #666666;
border-left-color: #666666;
font-size: 24px;
padding-left: 0px;
font-family: Didot, "Book Antiqua";
color: #CCCCCC;