Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  regarding styles
Previous Previous
 
Next Next
New Post 7/22/2008 2:50 AM
User is offline sayhi
5 posts
10th Ranked


regarding styles 

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 6:01 AM
User is offline Sam MacDonald
28 posts
10th Ranked


Re: regarding styles 

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 6:51 AM
User is offline Brandon Haynes
701 posts
brandonhaynes.org
7th Ranked


Re: regarding styles 

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 9:55 AM
User is offline Arash
17 posts
10th Ranked


Re: regarding styles 

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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  regarding styles
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


$7.16/mo - Powerful DotNetNuke / DNN Hosting
Powerful DotNetNuke / DNN Hosting on Windows 2008 and 2003 servers, starting at under $8/mo with FREE SQL 2008 on certain plans and FREE SQL 2005 on all plans with FREE Installation and expert support.
www.re-invent.com
ASP.NET Web Hosting for $3.95
3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
www.dailyrazor.com
Cestus Websites
DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
www.dotnetnuke-websites.nl

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP