X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Problems with CSS classes (https://forum.x-cart.com/showthread.php?t=9070)

EnriqueHavoc 08-24-2004 11:38 PM

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?

lyncca 08-25-2004 06:06 AM

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?

EnriqueHavoc 08-25-2004 02:49 PM

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

lyncca 08-25-2004 02:53 PM

Can you post a link to the site and tell which link it is?

EnriqueHavoc 08-25-2004 08:32 PM

http://upgrade.motionzoo.com/store

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

http://upgrade.motionzoo.com/VertMenuItems.gif

lyncca 08-26-2004 06:01 AM

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 :)

EnriqueHavoc 08-26-2004 11:49 AM

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

thank you lyncca!

lyncca 08-26-2004 11:54 AM

welcome :)

EnriqueHavoc 08-27-2004 03:03 AM

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!

lyncca 08-27-2004 05:59 AM

Oh good, I'm glad that worked!

Really nice looking store by the way :wink:

jparadise 09-08-2004 07:27 AM

CSS in the Speedbar - changing color of link pseudoclass
 
Ok, I have the opposite problem. I'm trying to change the color of the links in the speedbar, which is the Tab class.

No matter what I do, I can't seem to override the primary link psuedoclass style. Here's the code:

A:link {
COLOR: #081589; TEXT-DECORATION: none;
}

.Tab {
FONT-WEIGHT: bold;
TEXT-TRANSFORM: uppercase;
}
.Tab A:link {color: #FFFFFF}

I've also tried:

A.Tab:link {color: #ffffff}
a.Tab:visited {color: #0000ff}
a.Tab:hover {color: #ffcc00}

Any help would be greatly appreciated.

thanks,
Joshua

lyncca 09-08-2004 07:32 AM

Hi Josh,

Can I see your shop? I might be able to see whats wrong with it then.

jparadise 09-08-2004 07:39 AM

CSS in the Speedbar - changing color of link pseudoclass
 
I'm still doing the set-up. The shop is at
http://www.ogdenlittle.com/shop/customer/home.php

Let me know if you need to see any of the code.

thanks!

Joshua

jparadise 09-08-2004 09:42 AM

Now it seems to be working
 
Well, I'm not sure what the problem was, but the following code in the css file seems to be working. Note that the additional link characteristic is specified AFTER the class, but I'm not sure that matters.
Hmm.


Quote:

.Tab {
FONT-WEIGHT: bold;
TEXT-TRANSFORM: uppercase;
}
.Tab A:link {color: #FFFFFF} /*This one works -- changes link in Tab to white*/

jparadise 09-08-2004 09:57 AM

Now I feel like I'm going nuts -- works on SOME of the tabs
 
OK, now I feel like I'm going nuts. The Home and Contact Us tabs appear correctly, but the middle tab, shopping cart, has the old format. They all have the same class, Tab, so why would they be different? The page is at
https://ogdenlittle.globalhosting.com/shop/customer/

the code for the style sheet is:

Code:

.Tab {
        FONT-WEIGHT: bold;
        TEXT-TRANSFORM: uppercase;
}
.Tab A:link {color: #FFFFFF} /*This one works -- changes link in Tab to white*/
.Tab A:hover {COLOR: #FF0000; TEXT-DECORATION: underline;}


and the source for the speed bar is

Code:

<html>
<head>
<title>X-CART. Powerful PHP shopping cart software
          - Home
        </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="Ogden Little Bags | Sporty Chic Bags for Men and Women | Totes, Messenger Bags, Small Goods, Luggage, Briefcases | MADE IN USA">
<meta name="keywords" content="ogden little, ogden, bags, totes, messenger bags, bag, new york, fashion bags, made in usa, fashion luggage">
<link rel="stylesheet" href="https://ogdenlittle.globalhosting.com/shop/skin1/skin1.css">
</head>
<body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="100%" height="100%">
  <TR>
    <TD valign=top>
<TABLE class="OgdenTable" border=0 cellPadding=0 cellSpacing=0 width="100%">
<TR>
<TD width=27></TD>
<TD>

 

[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/menu_logo.gif[/img]
</TD>
<TD valign=top align=right>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td valign=top align=right>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td><table border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_01.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td height=5 valign=bottom class=Tab background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_02.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td width=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_03.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
</tr>
<tr>
<td width=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_04.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td width=85 height=30 class=Tab align=center background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_05.gif">Home</td>
<td width=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_06.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
</tr>
<tr>
<td width=9 height=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_07.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td height=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_08.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td width=9 height=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_09.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
</tr>
</table>
</td>
<td width=1>[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td><table border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_01.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td height=5 valign=bottom class=Tab background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_02.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td width=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_03.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
</tr>
<tr>
<td width=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_04.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td width=85 height=30 class=Tab align=center background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_05.gif">Shopping Cart</td>
<td width=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_06.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
</tr>
<tr>
<td width=9 height=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_07.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td height=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_08.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td width=9 height=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_09.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
</tr>
</table>
</td>
<td width=1>[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td><table border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_01.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td height=5 valign=bottom class=Tab background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_02.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td width=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_03.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
</tr>
<tr>
<td width=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_04.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td width=85 height=30 class=Tab align=center background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_05.gif">Contact Us</td>
<td width=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_06.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
</tr>
<tr>
<td width=9 height=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_07.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td height=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_08.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
<td width=9 height=9 background="https://ogdenlittle.globalhosting.com/shop/skin1/images/speedbar_design_09.gif">[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
</tr>
</table>
</td>
<td width=1>[img]https://ogdenlittle.globalhosting.com/shop/skin1/images/spacer.gif[/img]</td>
</tr>
</table>
</td>
</tr>
</table></TD></TR>
</TABLE>


EnriqueHavoc 09-09-2004 01:02 AM

it looks to me like you got it fixed since all 3 links seem to be using the Tab class correctly. Could it be that the a:visited color is throwing you off? or some caching problem with your browser? dunno

could you take a screenshot of the problem


All times are GMT -8. The time now is 07:10 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.