Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Category Tabs Formatting Problem


valeriestw

Recommended Posts

I'm hoping somebody here can help me get this worked out. I've installed the Category Tabs menu v1.3 by Borkur Ingi Jonsson (based on previous contribution by Paul Marshall).

 

The stylesheet has an area to set the colors for the "On tab" to be different from the other tabs. This is working for me as far as the background of the tab, but not for the text.

 

Instead, it is inheriting the A. class formatting. I have looked through the categories_tab.php file but it appears to be correctly setup. I can't figure it out. Here's the relevant code:

 

// display category name

$categories_string .= $foo[$counter]['name'];

 

$categories_string .= '</a></td>';

if ($onpage) {

$categories_string .= '<td valign="top" class="ontab">';

} else {

$categories_string .= '<td valign="top" class="tab">';

}

 

$categories_string .= tep_image(DIR_WS_IMAGES . 'trans_corner_right.gif', '');

$categories_string .= '</td>';

 

if ($foo[$counter]['next_id']) {

$onpage = 0;

show_category_tabs($foo[$counter]['next_id']);

}

}

 

 

As far as I can tell, it is saying for the onpage tab to use the ontab format for printing the label. But it isn't. The only time I can get a color change for that label to show up is when I change the A. format.

 

Any suggestions? Any help would be greatly appeciated!

www.knownworldweb.com

Link to comment
Share on other sites

There is no tag in the stylesheet for A.ontab or A.ontab:hover

 

add these and that should work

 

I also noticed

text-decoration : none;

 

you might want to change these to (remove the space)

 

text-decoration: none;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...