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, ...Overriding default.css attribytesOverriding default.css attribytes
Previous
 
Next
New Post
6/2/2010 2:34 PM
 
am trying to override the default.css values.  I’m using FireFox and FireBug with DNN version 4.94. Below is a copy of the css attributes displayed by Firebug. The portal.css file is from the “Stylesheet Editor”Site on the Settings page. The default.css is from the skin’s default css file. The skin is one of the 4.9.4 basic skins, CrystalSlateSkin.

Does anyone know how to make a change in the Stylesheet Editor to override the default,css attribute settings?  Do I have to create a new class and assign it all tags that I use?

Thanks.
David Weaver


default.css (line 287)
a:visited {
color:#FFFFFF;
font-family:Tahoma,Verdana,Arial,Helvetica,sans-serif;
font-size:11px;
font-weight:normal;
text-decoration:none;
}


portal.css (line 21)
a:visited {
color:red;
font-family:Tahoma,Verdana,Arial,Helvetica,sans-serif;
font-size:14px;
font-weight:normal;
text-decoration:none;
}
 
New Post
6/2/2010 3:23 PM
 

David,

If the selectors are the same it should override the default.css as it comes last in the CSS stack.

Any chance you can provide a link to an example so I can have a look with Firebug?

Regards,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
6/2/2010 7:55 PM
 
Thanks for the reply Rick.
I thought the same thing, that if I used the same name it would override.  But from what I've been reading, DNN uses the first css file loaded, not the last.  I think that is my problem, but I'm not sure. Here's a link to home page of the site.  It is not active yet but we hope  to be able to convet late this summer.

http://cir.pca.org/ 

Thanks.

David
 
New Post
6/3/2010 5:20 AM
 

David,

Thanks for the link to the site, this has helped a lot and I've figured out your CSS issue.

Within the body of the skin you're loading a default.css file which is located here: /Portals/_default/Skins/CrystalSlateSkin/images/default.css. This is the css file loading last and that's why when you make changes to the portal.css file nothing is happening.

DNN uses CSS normally, as it can't actually decide whether to use the first or last css files itself because this is controlled by the device viewing the website and it's doctype e.t.c. and not the framework.

The way you've included the css for the skin is diofferent to the normal use of CSS in a skin pack and I think there's a chance this may casue you more problems in the future. To help with this I'll describe the skinning way of including CSS for your skin designs.

With every skin pack you can use a skin.css file, located in the same directory as your skin files, for general skin style. Use this for the main layout elements and default skin settings, if you're creating more than one skin in your pack. You can then use a SkinName.css file (where SkinName is the actual name of your skin) to control specific skin styling because this file will only load with the skin of the same name.

I hope this helps.

Regards,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
6/3/2010 10:46 AM
 

Thanks again Rick.  That’s what I though about the default skin.  But I have an admin role at this site and do not have host role rights.  This skin is one of the default skins available from this hosting site, so naturally I do not have access to the folder that contains the default skins or css files. 

 

I’ve checked my folders under “File Manager”.  I have a “Portal Root” with a subfolder of “Skins” but my selected skin is not in that folder.  I’ve tried to export the skin, but it does not export.  I do not see a download facility for a skin.

 

Does this mean I have install a skin?  I tried that once and had to have the host role perform that because it required updates that my admin role did not have.  They did not do it correctly.

 

Do I have to have them make changes to the css file.  I almost wouldn’t mind,  The skins background is dark and all of the links and default text are in dark blue and black.  That is really my biggest problem.

 

Thanks.

 

David

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Overriding default.css attribytesOverriding default.css attribytes


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