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

Problems with CSS classes

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-24-2004, 11:38 PM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default Problems with CSS classes

ok im having a hard time with CSS...

Take for example the CategoriesList class being used in the categories.tpl and menu.tpl templates.

I know im working with the right class but no matter what color i change the CSS to it always comes up black. I can change the size but not the color.

anybody experienced this before?
__________________
X-Cart 4.0.12
PHP 4.3.11
MySQL 4.0.23
Linux/Apache
Net::SSLeay 1.25
libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4
www.ewdhosting.com
Reply With Quote
  #2  
Old 08-25-2004, 06:06 AM
  lyncca's Avatar 
lyncca lyncca is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Fort Worth, Texas
Posts: 455
 

Default

The items are one color but there is also a set of links that are also affected. Look for code similar to this:


Code:
.VertMenuItems:link { COLOR: #0069B2; TEXT-DECORATION: none; } .VertMenuItems:visited { COLOR: #0069B2; TEXT-DECORATION: none; } .VertMenuItems:hover { COLOR: #0069B2; TEXT-DECORATION: none; text-decoration: underline; } .VertMenuItems:active { COLOR: #0069B2; TEXT-DECORATION: none; }

Does that help?
Reply With Quote
  #3  
Old 08-25-2004, 02:49 PM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default

yeah whats weird is ive changed all those but it doesnt seem to affect the link in question. still shows up as black :/

Quote:
.VertMenuItems{
COLOR: #264970; TEXT-DECORATION: none;
}
.VertMenuItems:link {
COLOR: #264970; TEXT-DECORATION: none;
}
.VertMenuItems:visited {
COLOR: #264970; TEXT-DECORATION: none;
}
.VertMenuItems:hover {
COLOR: #264970; TEXT-DECORATION: underline;
}
.VertMenuItems:active {
COLOR: #264970; TEXT-DECORATION: none;

i know they are the right classes though, ive checked and the td is using the VertMenuItems class so......? i dont know, im at a loss
__________________
X-Cart 4.0.12
PHP 4.3.11
MySQL 4.0.23
Linux/Apache
Net::SSLeay 1.25
libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4
www.ewdhosting.com
Reply With Quote
  #4  
Old 08-25-2004, 02:53 PM
  lyncca's Avatar 
lyncca lyncca is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Fort Worth, Texas
Posts: 455
 

Default

Can you post a link to the site and tell which link it is?
Reply With Quote
  #5  
Old 08-25-2004, 08:32 PM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default

http://upgrade.motionzoo.com/store

the links in the "Your Cart" and "Products" blocks

http://upgrade.motionzoo.com/VertMenuItems.gif
__________________
X-Cart 4.0.12
PHP 4.3.11
MySQL 4.0.23
Linux/Apache
Net::SSLeay 1.25
libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4
www.ewdhosting.com
Reply With Quote
  #6  
Old 08-26-2004, 06:01 AM
  lyncca's Avatar 
lyncca lyncca is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Fort Worth, Texas
Posts: 455
 

Default

Alrighty, I haven't figured out exactly what is causing it, but these lines are affecting it:

Code:
.tcat A:link { COLOR: #000000; TEXT-DECORATION: none } .tcat A:visited { COLOR: #000000; TEXT-DECORATION: none } .tcat A:hover { COLOR: #000000; TEXT-DECORATION: underline } .tcat A:active { COLOR: #000000; TEXT-DECORATION: underline }

When I deleted those from the CSS the links showed up properly in blue.

Then I did a search in your code and found that the {TD} before the cart had the following:

Code:
<TD class=tcat> <TABLE cellSpacing=1 cellPadding=1 width="100%" border=0> <TBODY> <TR> <TD class=alt2>[img]Motionzoo Online Store_files/dingbats_orders.gif[/img] <SPAN class=smallfont>Your Cart</SPAN></TD></TR> <TR>

So, the TD is overridding your VertMenuItems CSS.

I hope that helps
Reply With Quote
  #7  
Old 08-26-2004, 11:49 AM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default

hmmm...... that does make some sense. ill try to get rid of the css conflicts and see if that works.

thank you lyncca!
__________________
X-Cart 4.0.12
PHP 4.3.11
MySQL 4.0.23
Linux/Apache
Net::SSLeay 1.25
libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4
www.ewdhosting.com
Reply With Quote
  #8  
Old 08-26-2004, 11:54 AM
  lyncca's Avatar 
lyncca lyncca is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Fort Worth, Texas
Posts: 455
 

Default

welcome
Reply With Quote
  #9  
Old 08-27-2004, 03:03 AM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default

Yes, you are the woman lyncca! that was exactly it. its still pretty confusing trying to keep track of all the css classes and their conflicting properties since theyre nested across various templates but ive now got it looking the way i want.

thanks again!
__________________
X-Cart 4.0.12
PHP 4.3.11
MySQL 4.0.23
Linux/Apache
Net::SSLeay 1.25
libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4
www.ewdhosting.com
Reply With Quote
  #10  
Old 08-27-2004, 05:59 AM
  lyncca's Avatar 
lyncca lyncca is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Fort Worth, Texas
Posts: 455
 

Default

Oh good, I'm glad that worked!

Really nice looking store by the way
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 02:43 PM.

   

 
X-Cart forums © 2001-2020