Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to change the color the link?How to change the color the link?
Previous
 
Next
New Post
12/3/2008 10:44 PM
 

I created two following links

<a runat="server" href="http://www.google.com.vn" class="myex">Testing link</a>
<br />
<a id="A1" href="#" target="_self" title="abc">Testing link 1</a>

 

And here is CSS rules

a:link {color: #FF0000}     /* unvisited link */
a:visited {color: #00FF00}  /* visited link */
a:hover {color: #FF00FF; font-variant:small-caps; background-color:Yellow;}   /* mouse over link */
a:active {color: #0000FF}   /* selected link */

It seems that rules don't have any afftect to color of links. When I hovered over the link, the background color and the font changed. However, the color of links was default.

Please tell me how to change the color of anchors.

 
New Post
12/4/2008 12:05 AM
 

Are you sure it wasn't just a cached stylesheet?


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
12/4/2008 12:52 AM
 

I pressed Ctl+F5 many times, the rules for color haven't been applied. And the rules for font and background-color have effect although they were added later. However, I can do it by modifying a little bit:

<div class="duc">
<a runat="server" href="http://www.google.com.vn" class="myex">Testing link</a>
<br />
<a id="A1" href="#" target="_self" title="abc">Testing link 1</a>
</div>

 

duc a:link {color: #00FF00}  /* visited link */
.duc a:visited {color: #00FF00}  /* visited link */
.duc a:hover {color:Black; font-variant:small-caps; background-color:Yellow;}   /* mouse over link */
.duc a:active {color: #0000FF}   /* selected link */

 
New Post
12/4/2008 11:50 AM
 

Are you working with DNN or just a plain HTML page?

Try to use Firebug plugin to see which stylesheet is overriding your CSS.


Cuong Dang
Co-founder: Enliven, dnnGallery
LinkedIn | Twitter
I'm the author of DNN and Web Standards Wrox Blox

 
New Post
12/4/2008 11:52 AM
 

This sounds like there may be another snippet of CSS overriding your styles - either in the skin css, container css, or a module css somewhere.  I would also suggest checking the portal css.


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to change the color the link?How to change the color the link?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out