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

What am I doing wrong in my code & CSS???

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-17-2007, 11:51 AM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default What am I doing wrong in my code & CSS???

I can not get my link colors to change in the top menu navigation (out of the box was the tabs at the top but I modified it). For some reason, it wants to default to the sitewide standard and that will not work b/c of the bgcolor they are on. Here is the code I have:

Quote:
<table cellpadding="0" cellspacing="0" dir="ltr">
<tr>
<td class="tab" {$reading_direction_tag}>{$tab_title}</td>
</tr>
</table>


Here is the CSS I have to go with the tab class:

Quote:
.tab {
COLOR: #ffffff;
FONT-WEIGHT: bold;
TEXT-TRANSFORM: uppercase;
WIDTH: 85px;
HEIGHT: 30px;
TEXT-ALIGN: center;
}
A:link.tab {
COLOR: #ffffff;
TEXT-DECORATION: NONE;
}
A:visited.tab {
COLOR: #ffffff;
TEXT-DECORATION: NONE;
}
A:hover.tab {
COLOR: #ffffff;
TEXT-DECORATION: NONE;
}
A:active.tab {
COLOR: #ffffff;
TEXT-DECORATION: NONE;
}


Now, I cheated & copied the link CSS from another area that had the same definitions, just different class & color. They work but I can not get this to work. Am I missing something on the whole tab menu thing today? My brain does tend to quit processing data properly later in the day.

Thanks,
Jen
__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
Reply With Quote
  #2  
Old 07-17-2007, 12:00 PM
  Jayk's Avatar 
Jayk Jayk is offline
 

eXpert
  
Join Date: Nov 2003
Location: Calgary, Alberta, Canada
Posts: 333
 

Default Re: What am I doing wrong in my code & CSS???

I think you need a TD.tab entry in your css.

Jason
__________________
X-Cart Gold 4.4.3
Blog: www.flashinthepan.ca
Reply With Quote
  #3  
Old 07-17-2007, 12:21 PM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Re: What am I doing wrong in my code & CSS???

Well, I just figured out a work around. I am not sure about doing it this way but it is the only way that is working today.

I edited this segment of the top_menu.tpl file to include the class without quotes around the class name and it works. So I am leaving it for now.

Quote:
{section name=sb loop=$speed_bar}
{if $speed_bar[sb].active eq "Y"}
<td valign="top">{include file="customer/tab.tpl" tab_title="<a href=\"`$speed_bar[sb].link`\" class=tab>`$speed_bar[sb].title`</a>"}</td>
{/if}
{/section}
__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
Reply With Quote
  #4  
Old 07-17-2007, 08:01 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: What am I doing wrong in my code & CSS???

I think you syntax is incorrect.

should be

A
.tab:link {
COLOR: #ffffff;
TEXT-DECORATION: NONE;
}
A
.tab:visited {
COLOR: #ffffff;
TEXT-DECORATION: NONE;
}
A
.tab:hover {
COLOR: #ffffff;
TEXT-DECORATION: NONE;
}
A
.tab:active {
COLOR: #ffffff;
TEXT-DECORATION: NONE;
}
__________________
xcart 5.1.2
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:41 AM.

   

 
X-Cart forums © 2001-2020