Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

How to create new set of "URL links" styles in CSS

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-01-2005, 06:04 AM
 
btomasie btomasie is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 80
 

Default How to create new set of "URL links" styles in CSS

The skin1.css has the 4 styles in it for URL links:
A:link, A:hover, A:visited, A:active

Since these are used globally throughout, I cannot mess with these. But I would like to have a second set of styles that has a different link and hover color and decoration. How can I create a second set so that when I do a "A href=" within the .tpl, the new styles are applied and not the standard ones?

Rght now, if I have:
{....}

no matter what I put into that class style that references the text, the "A:link" overrides the displaying of it to whatever the A:link is set for in the CSS.

Thanks much!!
Brian
__________________
X-Cart Gold v4.0.18 [unix]
- Easy Checkout module
- ezUpsell module
- CDSEO module

X-Cart Gold v4.1.11 [unix]
***38,000+ active products!
- CDSEO module
- Address Book module
- Reorder module
- Smart Search module

X-Cart Gold v4.4.2 [unix]
- in development now!
Reply With Quote
  #2  
Old 11-01-2005, 06:07 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

.stylename:link
.stylename:hover
.stylename:active
.stylename:visited
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-01-2005, 06:24 AM
 
btomasie btomasie is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 80
 

Default

Thanks, but I don't see how I can "override" the A href that is inherently in there to make the HTML code work properly...

I was thinking I need something to totally replace the "A href" code (basically, inside the new styles, it would have in there that the style was being applied to URL's and so also make them links).

Sorry if that sounds confusing,
Brian
__________________
X-Cart Gold v4.0.18 [unix]
- Easy Checkout module
- ezUpsell module
- CDSEO module

X-Cart Gold v4.1.11 [unix]
***38,000+ active products!
- CDSEO module
- Address Book module
- Reorder module
- Smart Search module

X-Cart Gold v4.4.2 [unix]
- in development now!
Reply With Quote
  #4  
Old 11-01-2005, 06:28 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Just create the four styles above in your skin1.css. Replace 'stylename' with whatever you want.

Then, in the link you want to override the default, just add the new style name:

link
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-01-2005, 07:09 AM
 
btomasie btomasie is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 80
 

Default

BINGO, that works perfectly! I had the style class outside of the end-bracket of the A href.

Thanks much!!
Brian
__________________
X-Cart Gold v4.0.18 [unix]
- Easy Checkout module
- ezUpsell module
- CDSEO module

X-Cart Gold v4.1.11 [unix]
***38,000+ active products!
- CDSEO module
- Address Book module
- Reorder module
- Smart Search module

X-Cart Gold v4.4.2 [unix]
- in development now!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:12 PM.

   

 
X-Cart forums © 2001-2020