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, ...Cannot change color of User Control Cannot change color of User Control
Previous
 
Next
New Post
3/22/2007 3:53 PM
 

There is a control on most skins that shows the username that the user is logged in as.  Among all the css files I cannot find which controls the fore color of the text.  I have tried making a class and this changes things like the background color but I cannot seem to control the text color.  Seems like it should be obvious.  The following skin class does not change the text color but will change the text size:

.userCtrl {

text-decoration: none;font-family: Tahoma, Arial, Helvetica;font-size: xx-small;color: #000000; 

}

 
New Post
3/22/2007 4:52 PM
 
See my post here: Click Here 
 
New Post
3/23/2007 7:49 AM
 

The control:
<dnn:USER runat="server" id="dnnUSER" CSSClass="userCtrl" />

The css (tail end of a Nina Meyers stylesheet:
.userCtrl
{
 text-decoration:    none;
    font-family: Tahoma, Arial, Helvetica;
    font-size: xx-small;
    color: #000000;
}

If I change the font-size, the font size changes.  The font color is gray on the user control no matter what you set the color.  This is the control that sits at the top of every page on the site.  There seems to be some other class overriding.  I also tried the class on a table with the control in it and that did not fix the problem.  In fact the following does not change the text size:

<span style="text-size: xx-large;"><dnn:USER runat="server" id="dnnUSER" /></span>

Thank you for any assistance

 
New Post
3/23/2007 10:09 AM
 
The user control text is a link, therefore text color and decoration is controlled by the link (a) styles you define in your css class.

Change your css class to the following:

a.userCtrl:link, a.
userCtrl:active, a.userCtrl:visited, a.userCtrl:hover
{
    color:#ECF123;
    font-weight:bold;
    text-decoration:none;
}

If you want different styling for link, visited, active then you'll have to separate out the css class definitions.
 
New Post
3/23/2007 1:09 PM
 

My class previously would change the size of the font but not the color.  The following does neither.
Control defined as:
<dnn:USER runat="server" id="dnnUSER" cssClass="userCtrl" />

Class defined as:

a.userCtrl:link
{
 text-decoration:    none;
    font-family: Tahoma, Arial, Helvetica;
    font-size: xx-large;
    color: #000000;
}

a.userCtrl:active
{
 text-decoration:    none;
    font-family: Tahoma, Arial, Helvetica;
    font-size: xx-large;
    color: #000000;
}

a.userCtrl:visited
{
 text-decoration:    none;
    font-family: Tahoma, Arial, Helvetica;
    font-size: xx-large;
    color: #000000;
}

a.userCtrl:hover
{
 text-decoration:    none;
    font-family: Tahoma, Arial, Helvetica;
    font-size: xx-large;
    color: #000000;
}

View Source:

<TD class="skingradient2" vAlign="middle" align="right" nowrap><a id="dnn_dnnUSER_hypRegister" disabled="disabled" title="Click Here To Edit Your Account Profile" class="userCtrl">host Account</a>&nbsp;&nbsp;&nbsp;</TD>

host Account is still in gray and now not in xx-large

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Cannot change color of User Control Cannot change color of User Control


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