0
Welcome Guest! Login
0 items Join Now

SOLVED How to make different color text links in modules and body?

  • SOLVED How to make different color text links in modules and body?

    Posted 18 years 1 month ago
    • I am having a problem with my text links. It seems that:
      table.headlines div.moduletable h3,
      .componentheading {
      color: #f26522;
      }
      a:link,
      a:visited {
      color: #000000;

      }

      controls the color of text links in both my content area and in my modules in the side bars. Problem is, I have a white content area and blue side bars, but I need white links in the sidebar modules and blue links in the content area!LOL So basically, if I change that to white, the links in my content can't be seen, and if I change it to blue, then my links in the modules on the sidebars can't be seen. So how would I go about giving each one it's own css for color?

      Thanks,
      David Henderson
    • Last Edit: 18 years 1 month ago by Yves.
    • Dan L's Avatar
    • Dan L
    • Elite Rocketeer
    • Posts: 1453
    • Thanks: 0

    Re: SOLVED How to make different color text links in modules and body?

    Posted 18 years 1 month ago
    • You will need to target the a:link elements, something like this should work:
      .moduletable a:link,
      .moduletable a:visited {
         color: white;
      }
    • Toolbox Digital | Dribbble | Forrst
  • Re: SOLVED How to make different color text links in modules and body?

    Posted 18 years 1 month ago
    • Hmm, I just went through the posts in the water cooler section 3 times looking to see if I got an answer to this post!LOL Never even looked up top, didnt think it would be stickied..luckily I used the see latest posts from my profile and found it:) Now, can I just paste that into my template_css file anywhere? Or does it need to be put under a parent item of some sort? I was about to read the tutorial on how to use module class suffixes, thought maybe that would at least let me give some css styling to the modules individually. Gogin to try pasting what you wrote in the template css file first though, hopefully it's that easy!

      Thanks,
      David Henderson
  • Re: SOLVED How to make different color text links in modules and body?

    Posted 18 years 1 month ago
    • A million thanks Dan! That worked exactly how I wanted! One other question on the same topic. This module has a little title on it produced from PHP, it's a boring dull grey, and I need that to also be white, any idea how? Here is the syntax that makes the text title just incase you need it to know what type of title I am talking about because it is not the module title, it is much smaller and fits my needs better on this module:)

      <label for="shop_search_field"><?php echo $VM_LANG->_PHPSHOP_PRODUCT_SEARCH_LBL ?></label>

      and that makes a nice small title of Product Search above the search box..but it's a dull grey, and i need it to be white:)

      Thanks,
      David Henderson
  • Re: SOLVED How to make different color text links in modules and body?

    Posted 18 years 1 month ago
    • Ok, I found that it was getting it's styling from a place labeled body, so I copy and pasted tat syntax and replaced body with .moduletable and all is good:)

Time to create page: 0.066 seconds