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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0regarding stylesregarding styles
Previous
 
Next
New Post
7/22/2008 4:50 AM
 

hi

when developing a custom module can I have a seperate style sheet to define the styles for controls like label, textbox etc?

is this not related to the style sheet used for skinning?

 
New Post
7/22/2008 8:01 AM
 

When developing your own module you can define your own stylesheet called module.css.  This will allow you to define your own styles to use within your module.  Although i'm not sure at what level this css file will fall in within the inheritance of the portal.css and skin.css files.

Sam


Sam
http://www.learnmsnet.com/ - Blog about ASP.NET and DotNetNuke
http://www.shancer.com/ - Building modules for DotNetNuke
 
New Post
7/22/2008 8:51 AM
 

Hi Sayhi,

It's up to you.  Your module can hook into standard DNN classes (class="Normal", class="NormalRed", etc) which are typically implemented by whatever skin you're using, or you can add a link to your own module-specific stylesheet.

I think good general guidance would be to rely on "standard" DNN classes whenever possible (this includes datagrid styling), and to use a custom module stylesheet when this isn't sufficient.

When it comes to using a custom module stylesheet, you can choose to deploy it as an internal resource, as a file-based stylesheet in your DesktopModules\[ModuleName] directory, or into a portal-specific directory.  The location you choose will depend on the customization you wish to allow your end hosts and admins.

Hoppe this helps!

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
7/22/2008 11:55 AM
 

You can have your module.css file  for each module you develop under the module folder, but be careful your CSS class names should not be the same as the classes in Portal.css or Skin.css

Arash

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0regarding stylesregarding styles


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