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, ...Hypelink styleHypelink style
Previous
 
Next
New Post
3/10/2008 6:12 PM
 

Hello all,

I can modify the style of simple text within a module container but the the hyperlinks.

How would I do that?

Here is what I have:

<td runat="server" id="ContentPane" class="brownback" valign="top" width="100%" height="41%"></td>

___________

a.brownback, a.brownback:hover, a.brownback:link, a.brownback:active, a.brownback:visited
{
    font-size: 8pt;
    color: fuchsia;
    font-family: arial;
}

 

Why it doesn't work?

Thanks

 

 
New Post
3/10/2008 11:45 PM
 

Basically it's because the modules have thier own classes applied by DNN to them, so your applying your :hover and such to classes that aren't being used inside the module.  You're applying thm to the cell, but in the cell are more cells that have thier own class.

So...There is a file in DotNetNuke, called default.css that applies to everything in your website.  Every class in that file can be overridden.  To override them, in your skin.css file you must declair the same class that your overriding, and set the attributes you wish to override.

make sure, when you override something, override it exactly.  If they say border-left you say border-left adn so on.

Here is the section you need to override.  I've highlighted the items that you must override.  Just put those classes in your skin.css file and it should work.  if not take a look at default.css in your skin admin, site settings page...you'll see it all there.

 

 

/* GENERIC */
H1
{
font-family: Tahoma, Arial, Helvetica;
font-size: 20px;
font-weight: normal;
color: #666644;
}

H2
{
font-family: Tahoma, Arial, Helvetica;
font-size: 20px;
font-weight: normal;
color: #666644;
}

H3
{
font-family: Tahoma, Arial, Helvetica;
font-size: 12px;
font-weight: normal;
color: #003366;
}

H4
{
font-family: Tahoma, Arial, Helvetica;
font-size: 12px;
font-weight: normal;
color: #003366;
}

H5, DT
{
font-family: Tahoma, Arial, Helvetica;
font-size: 11px;
font-weight: bold;
color: #003366;
}

H6
{
font-family: Tahoma, Arial, Helvetica;
font-size: 11px;
font-weight: bold;
color: #003366;
}

TFOOT, THEAD
{
font-family: Tahoma, Arial, Helvetica;
font-size: 12px;
color: #003366;
}

TH
{
vertical-align: baseline;
font-family: Tahoma, Arial, Helvetica;
font-size: 12px;
font-weight: bold;
color: #003366;
}

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

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

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

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

http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en  <--I like this one for finding elements

http://chrispederick.com/work/web-developer/ <-- this one is GREAT for testing CSS.

 

 


Josh Martin

 
New Post
3/11/2008 9:47 AM
 

Many thanks for your reply.

I have added the highlighted sections in my container's css file and it worked. The only problem is that it

affected the rest of the modules too.

How would I make it not affect the rest, but modifying only the container's css file?

Thanks

 
New Post
3/11/2008 1:11 PM
 

nectar wrote

Many thanks for your reply.

I have added the highlighted sections in my container's css file and it worked. The only problem is that it

affected the rest of the modules too.

How would I make it not affect the rest, but modifying only the container's css file?

Thanks

All modules are held within a container.  I may be missunderstanding what you are trying to do I guess, but yes if you apply those items to the container, it will effect the contents of the container, or, the modules that the containers are holding.  I thought that was what you were wanting to do.

I guess you could create two containers, one for contents that have your styles applied, and one that doesn't.

 

Anyone have a better idea?

 


Josh Martin

 
New Post
3/11/2008 3:24 PM
 

I mean that if I apply the particular container on a module on a page, the style of the particular container

affects the links of other modules dressed in different containers. So, all the links in the same page

are modified by the new container's style!

Any ideas how to limit access to the links styling?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Hypelink styleHypelink style


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