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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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. |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| 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 |