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, ...New CSS Class not being picked upNew CSS Class not being picked up
Previous
 
Next
New Post
11/17/2006 8:19 AM
 
I have a new class as shown below. I've added the class to my skin.css.

I referenced the class in my skin htm and ascx files; however the class is not being picked up. I tried adding to default.css and portal css for the heck of it and still no go.

Any ideas?

If you try to go to my site be warned, it's ultra slow.

My call from the skin to the class is here:
<td class="Nav" height="35" background="/images/blue_bar.gif"><div align="center"><a href="http://www.austinmustangclub.com">Home</a> | <a href="http://www.austinmustangclub.com/AustinMustangClubForums/tabid/53/Default.aspx">Forums</a> | <a href="http://www.austinmustangclub.com/Photos/tabid/55/Default.aspx">Photos</a> | <a href="http://www.austinmustangclub.com/Links/tabid/56/Default.aspx">Links</a> |  <a href="http://www.austinmustangclub.com/ContactUs/tabid/57/Default.aspx">Contact Us</a> </div></td>


-------------------- new css class ---------------------\

.Nav {
    font-weight: bold;
    font-size: 8.5pt;
    color: #ffffff;
    font-family: Arial, Helvetica;
    text-decoration: none;
}

A.Nav:link {
    text-decoration:    none;
    color:#ffffff;
}

A.Nav:visited  {
    text-decoration:    none;
    color:#ffffff;
}

A.Nav:active   {
    text-decoration:    none;
    color:#ffffff;
}

A.Nav:hover    {
    text-decoration:    underline;
    color:#ffffff;
}
 
New Post
11/17/2006 4:10 PM
 
You should have used this:

.nav a:link

since the .nav class is for the <div> which is the parent of the <A> and not the class of the<A> itself....
 
New Post
11/18/2006 12:30 AM
 

EDIT: Timo's response got posted while I was writing, please excuse me.

 
New Post
11/19/2006 11:13 AM
 
For whatever reason this did not work. I then defined the class per each link and that did the trick.

I'm not sure why the css change you suggest does not work though. It should work.

Thanks for the help. - Patrick

<td height="35" background="/images/blue_bar.gif"><div align="center" class="Nav">
<a href="http://www.austinmustangclub.com" class="Nav">Home</a> |
<a href="http://www.austinmustangclub.com/AustinMustangClubForums/tabid/53/Default.aspx" class="Nav">Forums</a> |
<a href="http://www.austinmustangclub.com/Photos/tabid/55/Default.aspx" class="Nav">Photos</a> |
<a href="http://www.austinmustangclub.com/Links/tabid/56/Default.aspx" class="Nav">Links</a> | 

 
New Post
11/20/2006 11:27 AM
 
I just saved you page locally and the reason that the menu doesn't seem to pickup the CSS
 is that in default.aspx there is this:

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

Because if I change the class of the home link to "nothing" it becomes blue
With this css...

.nav a:link {
text-decoration: none;
color:#ffffff;
}

.nav a:visited {
text-decoration: none;
color:#ffffff;
}

.nav a:hover {
text-decoration: underline;
color:#ffffff;
}

.nav a:active {
text-decoration: none;
color:#ffffff;
}

And only a nav class applied to the surrounding DIV it should work okay.
At least my local copy does...
(even with the .nav only applied to the surrounding TD)
But I realise now that's about the same as my first post....
Maybe you forgot the "visited" during testing?

By the way, I really had to get used to all the css a page inherits from default.css....


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...New CSS Class not being picked upNew CSS Class not being picked up


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