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, ...[USER] and [LOGIN] unaffected by CSS Class?[USER] and [LOGIN] unaffected by CSS Class?
Previous
 
Next
New Post
6/14/2007 11:08 PM
 

Hi,

I moved the [USER] and [LOGIN] tokens to a different cell and row in a skin that started out as the DNN-Blue skin. The table has not changed. The menu is in the same row, different cell. The menu is hadled bu the menu classes in the CSS. The backround for this table is handled by the skingradient class in CSS.

The problem: the user and login are ignoring the skingradient class settings. Any body know how I can change their font, etc?

Thanks!

 
New Post
6/15/2007 12:16 AM
 

Can you provide a link to the site? Without looking at it, I won't be able to help.

One suggestion is to use Firebug (for FF) to see which styles are being applied.

 
New Post
6/15/2007 4:25 AM
 

Sure, the site is at www.WorkAtHomeParadise.com

Here is the HTML:

<table class="skingradient" cellspacing="0" cellpadding="3" width="100%" border="0">
        <tr>
            <td width="100%" valign="middle" align="left" nowrap style="height: auto; text-align: left;">
                [MENU]</td>
            <TD width="300" valign="middle" align="right" nowrap style="height: auto; text-align: right;"> [USER] &nbsp;[LOGIN]</TD>
        </tr>
    </table>

Here is the CSS:

.skingradient {
 background-color: #0099cc;
 background-image: url(ocean2.gif);
 color: #FFFF00;
 font-size: 9pt;
 font-weight: bold;
 font-style: normal;
 font-family: Tahoma, Arial, Helvetica;
 height: 20px;
 }

Thanks!

 
New Post
6/15/2007 5:16 AM
 

That's because the SkinGradient styles are overrided by SkinObject . Please note that when you specify a class for a table, the components inside it can still have their own styles.

And now the solution :

Replace the appropriate section in skin.ascx with this : (sorry, I'm completely blind in HTML skinning )

          <TD width="300" valign="middle" align="right" nowrap style="height: auto; text-align: right;"> <dnn:USER runat="server" id="dnnUSER" cssclass="skingradient" /> &nbsp;<dnn:LOGIN runat="server" id="dnnLOGIN" cssclass="skingradient" /></TD>

Hope this helps.

Duc

 
New Post
6/15/2007 3:50 PM
 

Also, you can address the object directly by using it's ID. What I usually do is view the source of the rendered page, then add the ID directly to my skin's CSS. I've not heard whether this is acceptable or wise, but I haven't run into any problems with it and it allows me to style the Login / User tokens seperately.

Sample CSS:

#dnn_dnnLOGIN_hypLogin {
     color: #CCCCC;
     font-size: 14px;
}

#dnn_dnnLOGIN_hypLogin {
    color: #000000;
}

 

~SB


Wells Doty Jr
Online Content Development
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...[USER] and [LOGIN] unaffected by CSS Class?[USER] and [LOGIN] unaffected by CSS Class?


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