Hi,

I'm trying to understand what is happening with some classes. The snippet of the stylesheet is:

Code:
 A.buybothPrice {
 	font-family: Palatino Linotype;
 	font-size: 18px;
 /*	color: b2d524; */
 	color: #59118E;
 }
 A.buybothHeading {
 	font-family: Palatino Linotype;
 	font-size: 18px;
 /*	color: b2d524; */
 	color: #59118E;
 }
 .buybothText {
 	font-family: Verdana, Arial, sans-serif;
 	font-size: 11px;
 	color: #506b00;
 }
The html source code as follows:

Code:
 <table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
 <td colspan="5" align="left" class="buybothText"><a class="buybothHeading">Special Bundling Offer (add fragrance selections to comments box)</a><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="5">Buy 		<script language="javascript"><!--
 		    document.write('<a class="ProductInfoImage" href="javascript:popupWindow(\'http://example.com/popup_image.php/pID/23\')"><b>Champagne Gel Candles</a></b>');
 		//--></script>
 
 		<noscript>
 		<a class="ProductInfoImage" href="http://example.com/images/champagne_candles_tn.jpg"><b>Champagne Gel Candles</a></b>	    </noscript>
Now, the string "Special Bundling Offer (add fragrance selections to comments box)" is displaying as per class "buybothHeading" , as expected, that's okay.

But the problem I can't understand is down further, the string "Champagne Gel Candles", appears to be displaying in the class "buybothText". Now, all I can assume is because the class "ProductInfoImage" is not defined (it is definitely now where in the stylesheet, and not even in any file on the website), that it has used the class "buybothText" , because that is the class defined for the "td".

Is that how it works, or more the point, are my assumptions correct ??

Btw, the reason why the (PHP) code has the class "ProductInfoImage" defined, is because I'm using an osCommerce contribution, which comes from another website, and yes, _that_ class is on _that_ website.

I'm basically needing to understand how classes get turned on/off (no doubt by a new class statement), and what happens when a class is specified that doesn't exist.

Also, what happens when there is a 'class within a class', which one is used ??

Thanks,

Peter