Results 1 to 2 of 2

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

      
  1. #1
    New Member
    Join Date
    Dec 2003
    Posts
    15
    Rep Power
    0


    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.

  2. #2
    New Member
    Join Date
    Jul 2003
    Posts
    25
    Rep Power
    0


    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

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •