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

How to change Category Font Color Only!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-08-2002, 05:34 PM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default How to change Category Font Color Only!

Hello, this font color thing with css is getting me mad, It's rough working with black and white at the same time and picking a font that will match colors and show up on both backgrounds...ok, here's what I want to do....I am going to reset my css file so that all of my hyperlinks are black, now here is where i need the help... Where does the category list get it's font color from? I know it get's it from:

A {
COLOR: #999999; TEXT-DECORATION: none;

But I want to make it grab the font color from a different source...how can i do this? I think i know how, but I just wanted a quick answer before i spend an hour trying to figure it out. Thanks!
Reply With Quote
  #2  
Old 11-23-2002, 02:50 PM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

Hi is this the category list in the dropdown list box, or your own created categorie list?

Quote:
A {
COLOR: #999999; TEXT-DECORATION: none;

The above only affects anchors (<a href="file_name>Name </a>)
and sets the color for every link.

You can change the pre-hover color by changing the "class=whatever" statement in the "skin1.css" file.

NOTE: take a note of the name of the class statement, before changing, as xcart may have used the same class title settings for other areas in xcart.

Regards,
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote
  #3  
Old 11-28-2002, 10:30 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

I had a similar issue on a site that I am working on at the moment.

The categories get the text styling from CategoriesList in skin1.css. The A:Link etc styles control the colours of the links. However, if you want the hyperlinks to show against different backgrounds then best to set a class to the <a href> of each link.

ie Link
__________________
ex x-cart guru
Reply With Quote
  #4  
Old 12-11-2002, 05:02 PM
 
fusionartstamps fusionartstamps is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 124
 

Default

Does anyone know how to change the font color inside the body tags for hyperlinks? Ie. Under help I have a "Links" section, but all the hyperlinks are black, although on the hover they change color. I changed the A {COLOR: #993399; TEXT-DECORATION: underline;} and A:hover {COLOR: #993399; TEXT-DECORATION: underline;}. It seems that the A color isn't working or I'm missing something.

Thanks,

Amy
Reply With Quote
  #5  
Old 12-12-2002, 04:26 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Hi Amy,

To make links appear in a different color then use the same method as is used for the categories links.

For examlpe, you would create a new class in the style sheet as follows...

Quote:
.your_class {
COLOR: #AAAAAA; TEXT-DECORATION: none;
}

.your_class:hover {
COLOR: #CCCCCC; TEXT-DECORATION: underline;
}

now you must assign that class to the links that you want to use those colors like this ...

Quote:
your_link

thats what dr funky was saying

I did take a quick look at the other problem that you were having but something came up. Ill go back to it later

hth
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #6  
Old 12-12-2002, 04:45 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

Hi Amy

Please dont take this the wrong way but a really good source of background on stylesheets is at http://hotwired.lycos.com/webmonkey/reference/stylesheet_guide/

Forgive me if it is a grandma sucking eggs thing

Xcart uses these all over the place so it is really useful to know how to control look and feel through one document such as this. Also it is more compliant with W3C guidelines.
__________________
ex x-cart guru
Reply With Quote
  #7  
Old 12-12-2002, 08:14 AM
 
fusionartstamps fusionartstamps is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 124
 

Default

Shan and Funkydunk,

Again, thanks for all your help! This problem was easy to fix. Just a few more technical problems to fix and I'm ready to launch. Whew hooo!!

Amy
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 10:26 PM.

   

 
X-Cart forums © 2001-2020