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.
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 ...
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.
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
Bookmarks