hcamelion
07-28-2007, 09:52 AM
I am trying to change the font size in a menu structure I created. It's absolutely bizzarre. It seems like such a simple thing but every way i do it it just doesnt work. Basically I am trying to change the font size on the text wrapped by an href. This href does not have a class but the div tag surrounding it does. It seems if I take out the font-family:courier;the font-size some how works. Even if I change to comic sans ms or courier new it works. But I need to use courier. Does anyone know why this strange behavior is happening. Here is the related code/
CSS:
.blueButton, .whiteButton, .yellowButton {
background-repeat:no-repeat;
width: 121px;
height:20px;
color: black;
text-align:right;
}
.yellowButton a, .whiteButton a , .blueButton a,
.yellowButton a:hover, .whiteButton a:hover , .blueButton a :hover ,
.yellowButton a:visited, .whiteButton a:visited , .blueButton a :visited {
font-size: 10px;
display:block;
padding-top:2px;
padding-left:1px;
padding-right:6px;
color: black;
text-align:right;
height:19px;
font-family:courier;
}
.subcats
{
padding-top:2px;
padding-bottom:4px;
background-color:#666668;
text-align:right;
width: 120px;
}
.subcats a, .subcats a:visited, .subcats a:hover, .subcats a:active
{
padding-right:3px;
color: #FEFF01;
font-size:10.5px;
font-family:courier;
}
a.subSelected, a.subSelected:visited, a.subSelected:hover, a.subSelected:active
{
color:#67CBFF;
}
Here is a part of the menu:
<td class="boxText"><div class="blueButton" onmouseover="this.className='whiteButton';" onmouseout="this.className='blueButton';"><a href="/test-index.html" target="_parent">Home</a></div><div class="yellowButton" onmouseover="this.className='whiteButton';" onmouseout="this.className='yellowButton';"><a href="/artists/framed_artist_body.html" target="_parent">artists</a></div><div class="yellowButton" onmouseover="this.className='whiteButton';" onmouseout="this.className='yellowButton';"><a href="http://www.sundazed.com/shop/new-test-index.php?cPath=35" target="_parent">rock/pop</a></div><div class="yellowButton" onmouseover="this.className='whiteButton';" onmouseout="this.className='yellowButton';"><a href="http://www.sundazed.com/shop/new-test-index.php?cPath=36" target="_parent">garage/punk</a></div></td>
Henry C. Weismann IV
CSS:
.blueButton, .whiteButton, .yellowButton {
background-repeat:no-repeat;
width: 121px;
height:20px;
color: black;
text-align:right;
}
.yellowButton a, .whiteButton a , .blueButton a,
.yellowButton a:hover, .whiteButton a:hover , .blueButton a :hover ,
.yellowButton a:visited, .whiteButton a:visited , .blueButton a :visited {
font-size: 10px;
display:block;
padding-top:2px;
padding-left:1px;
padding-right:6px;
color: black;
text-align:right;
height:19px;
font-family:courier;
}
.subcats
{
padding-top:2px;
padding-bottom:4px;
background-color:#666668;
text-align:right;
width: 120px;
}
.subcats a, .subcats a:visited, .subcats a:hover, .subcats a:active
{
padding-right:3px;
color: #FEFF01;
font-size:10.5px;
font-family:courier;
}
a.subSelected, a.subSelected:visited, a.subSelected:hover, a.subSelected:active
{
color:#67CBFF;
}
Here is a part of the menu:
<td class="boxText"><div class="blueButton" onmouseover="this.className='whiteButton';" onmouseout="this.className='blueButton';"><a href="/test-index.html" target="_parent">Home</a></div><div class="yellowButton" onmouseover="this.className='whiteButton';" onmouseout="this.className='yellowButton';"><a href="/artists/framed_artist_body.html" target="_parent">artists</a></div><div class="yellowButton" onmouseover="this.className='whiteButton';" onmouseout="this.className='yellowButton';"><a href="http://www.sundazed.com/shop/new-test-index.php?cPath=35" target="_parent">rock/pop</a></div><div class="yellowButton" onmouseover="this.className='whiteButton';" onmouseout="this.className='yellowButton';"><a href="http://www.sundazed.com/shop/new-test-index.php?cPath=36" target="_parent">garage/punk</a></div></td>
Henry C. Weismann IV