Is the what you're after?? Simplify your a's with this:
A { color: #006699; text-decoration: none; } a:hover{ text-decoration: underline; } #showCart{ margin: 10px 20px 20px; padding: 4px; position: relative; font-size: 75%; color: #ffffff; text-align: left; } Then use showCart with an id on the element. <A HREF="viewcart.cfm" ID="showCart"> -----Original Message----- From: Sam Westlake [mailto:[EMAIL PROTECTED] Sent: Tuesday, 28 September 2004 8:49 PM To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] OT- Style Sheets You can define the styles for elements in a named block e.g., #showCart a{ margin: 10px 20px 20px; padding: 4px; position: relative; font-size: 75%; color: #ffffff; text-align: left; } ... but this will effect all the A tags in the #showCart element. You probably need to use inline styling or a pseudo class to achieve this. -----Original Message----- From: Paul Swingewood [mailto:[EMAIL PROTECTED] Sent: 28 September 2004 11:40 To: [EMAIL PROTECTED] Subject: Re: [ cf-dev ] OT- Style Sheets I should have posted some of the code I guess .... a:link{ color: #006699; text-decoration: none; } a:visited{ color: #006699; text-decoration: none; } a:hover{ color: #006699; text-decoration: underline; } #showCart{ margin: 10px 20px 20px; padding: 4px; position: relative; font-size: 75%; color: #ffffff; text-align: left; } <div class="showcart"> <A HREF="viewcart.cfm> <img src="images/cart_icon.gif"> View Basket</A><br> <A HREF="checkout.cfm"> <img src="images/cart_icon.gif"> Checkout</A><br> </div> The viewcart link colour is as defined by the a:link above. I want it to adopt the colour defined in the #showcart .... Regards - Paul -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED] -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED] -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]