osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

different color links in infoboxes then in the rest of page

This is a discussion on different color links in infoboxes then in the rest of page within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; is it possible to have the links in the infoboxes a different color then the other links. I have been ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-08-2003, 11:45 PM
New Member
 
Join Date: Dec 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bagged89s10
Default different color links in infoboxes then in the rest of page

is it possible to have the links in the infoboxes a different color then the other links. I have been editing the stylesheet for hours and i cannot figure it out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 12-10-2003, 05:09 PM
New Member
 
Join Date: Jul 2003
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Walter is an unknown quantity at this point
Default

Dear bagged89s10

The answer to your question is yes. The key is overriding the default style for the links.

On my webpage The Health Scene you will notice that the links in my info boxes are this off white color while the links in the body are blue. I achieved this by putting a class directly in the delimiters for the link.

I put the class within whatever infobox in catalog/include/boxes/.

For example in my categories box around line 16 is this snippet of code:

$categories_string .= '<a class="boxText" href="';

the boxText class is what overrides the default link color.

In my information box, I added these links manually(in other words, these links were not included in the default oscommerce installation) and included this code:

<a class="boxText2" href="' . tep_href_link('research_centers.php') . '">' .

I used boxText2 because this was a different infobox.

I then went to my style sheet and added this code:

A.boxText {
color: #efebe2;
}

This code overrode the default color in my categories box. You can have as many colors as you want for any link by adding the class directly in the <a href> code.

I hope this answers your question.

Sincerely,
Walter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
New infoboxes don't appear in page.. jasper0 osCMax v2 Customization/Mods 0 08-08-2006 10:19 AM
how to change color/size of links within main page joanstead osCMax v2 Customization/Mods 3 02-09-2006 02:19 PM
Changing page color ShawnAutoDMC osCMax v2 Customization/Mods 3 12-23-2005 10:41 PM
another color for the centre of my page Anonymous osCMax v1.7 Discussion 2 07-15-2004 10:31 PM
having problem putting page background color goldie osCMax v1.7 Discussion 1 11-03-2003 12:57 PM


All times are GMT -8. The time now is 04:35 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax