Jump to content

Different Color links


hrueda

Recommended Posts

The General Link Color on the Banners/Colors >General Attributes affects all the links. Is it possible to have specific links have a color other than the General Link color? For example, if the folder link has a different color than the product link? Registration link and so on.

 

Thank you!

 

Hugo

Link to comment
Share on other sites

The General Link Color on the Banners/Colors >General Attributes affects all the links. Is it possible to have specific links have a color other than the General Link color? For example, if the folder link has a different color than the product link? Registration link and so on.

 

That could get to be a little tedious. But you could find out the CSS ID Selector and use a little CSS on the Custom Content page. For example this would change the Self Registration Link on our Login Page.

 

<style type="text/css">
a:link#ctl00_content_SelfRegLinkSection_SelfRegLinkSectionLayout_lnkSelfReg {
color: green;
}
a:visited#ctl00_content_SelfRegLinkSection_SelfRegLinkSectionLayout_lnkSelfReg {
color: green;
}
a:hover#ctl00_content_SelfRegLinkSection_SelfRegLinkSectionLayout_lnkSelfReg {
color: green;
}
a:active#ctl00_content_SelfRegLinkSection_SelfRegLinkSectionLayout_lnkSelfReg {
color: green;
}
</style>

 

Or if you wanted to apply it to a whole class use a CSS Class Selector like this

 

<style type="text/css">
a:link.myClass {
color: green;
}
a:visited.myClass {
color: green;
}
a:hover.myClass {
color: green;
}
a:active.myClass {
color: green;
}
</style>

Link to comment
Share on other sites

×
×
  • Create New...