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, ...Default.css is overwriting my Stylesheet for Linkbuttons on UCsDefault.css is overwriting my Stylesheet for Linkbuttons on UCs
Previous
 
Next
New Post
4/4/2007 6:25 AM
 
 

Hello everyone!

Ive implemented some usercontrols to my DNN. These usercontrols have style classes which they get from a stylesheet named globalstyle.css. In this css I declareted a class named .HeaderImageText. I use this one for linkbuttons and labels.

If I run the project out of VS2005 the styles are applied correctly. It doesn´t if I publish my usercontrols to DNN.

I´ve found out that these classes of the default.css in \Portals\_default\default.css are overwriting my label and linkbutton styles:

A:link  {
    text-decoration:    none;
    color:  white;
}

A:visited   {
    text-decoration:    none;
    color:  #003366;
}

A:active    {
    text-decoration:    none;
    color:  #003366;
}

A:hover {
    text-decoration:    underline;
    color:  #ff0000;
}

If I edit the A:link  class to my requirements of course all links of DNN are also in white color. This is a problem because they are then unreadable because the background is very bright. I only want some specific labels and linkbuttons on my controls to be white not the DNN links.

The globalstyle.css classes are applied to all other types of controls on my UCs but not to linkbuttons!

Does anyone have a solution for this?

Thank you very much!

 
New Post
4/5/2007 7:56 AM
 
You should use
.HeaderImageText a:link{
    color:#FFFFFF;
}
I think.
 
New Post
4/12/2007 9:03 AM
 

Thanks for your help but it didnt make it.

I found a simple workaround for this. Just fix the ForeColor property of a LinkButton to force a color.

Its not the perfect solution but it helps if you dont have much time ;)

 
New Post
4/12/2007 9:16 AM
 

Create 4 new classes in either css file (probably your globalstyle.css would be the best approach):

.HeaderImageText A:link  {

}

.HeaderImageText A:visited   {

}

.HeaderImageText A:active    {

}

.HeaderImageText A:hover {

}

...should be good to go!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Default.css is overwriting my Stylesheet for Linkbuttons on UCsDefault.css is overwriting my Stylesheet for Linkbuttons on UCs


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