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  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Urgent: CSS Priority in DNN
Previous Previous
 
Next Next
New Post 3/3/2008 2:11 PM
User is offline Rusel
3 posts
10th Ranked


Re: Urgent: CSS Priority in DNN 

 Carlos Rodriguez wrote

Rusel:

"You need to be more specific in the details of what you need to do."

Carlos

 

 

What I want to do is this: I'm using a skin with a "style" subfolder. In that folder there are two CSS files named after skin.css and container.css. In the code of the main page of the skin I've included these two CSS files as links. So far so good.

Here's the hard part... In the code of the container.css file I've created two classes for, let's say, Container1, one class for the title of the container and another one for the body. In the code of the skinfixedwidth.ascx file I use these two classes.The one reffering to the title works fine. The other one used for the body of the container doesn't work as expected! For instance, if i change a padding-right property, it works throughout the whole of the container. But if I use a color property, it changes the color of the text only in the backend of the DNN! The text within the container in the frontend only changes if I change the properties of a specific class in the skin.css file named after .SubHead. The same happens for the hyperlinks within the container and so on... I can change them only by changing the classes of the skin.css file, but in this way I also change all the hyperlinks of the page! 

So, this is it... :( Any suggestions?

 
New Post 3/3/2008 2:18 PM
User is offline Rusel
3 posts
10th Ranked


Re: Urgent: CSS Priority in DNN 

I must also note that when i tried to create a .SubHead class in the module.css file found in the folder of the specific module, nothing happened... That's why I asked about the order in which the CSS files are handled by DNN.

 
New Post 3/4/2008 9:36 AM
User is offline Timo Breumelhof
1760 posts
5th Ranked




Re: Urgent: CSS Priority in DNN 

module.css is loaded before all the other ones, so if any of them has a .Subhead in it you will not see the changes.

(but I guess you already figured that out...)


Timo Breumelhof -- www.searchdotnetnuke.com -- Extended DNN (forum) search
 
New Post 3/4/2008 11:59 AM
User is offline Josh Martin
175 posts
www.dnnreactor.com
9th Ranked


Re: Urgent: CSS Priority in DNN 

 Rusel wrote

 Carlos Rodriguez wrote

 

Rusel:

"You need to be more specific in the details of what you need to do."

Carlos

 

 

 

What I want to do is this: I'm using a skin with a "style" subfolder. In that folder there are two CSS files named after skin.css and container.css. In the code of the main page of the skin I've included these two CSS files as links. So far so good.

Here's the hard part... In the code of the container.css file I've created two classes for, let's say, Container1, one class for the title of the container and another one for the body. In the code of the skinfixedwidth.ascx file I use these two classes.The one reffering to the title works fine. The other one used for the body of the container doesn't work as expected! For instance, if i change a padding-right property, it works throughout the whole of the container. But if I use a color property, it changes the color of the text only in the backend of the DNN! The text within the container in the frontend only changes if I change the properties of a specific class in the skin.css file named after .SubHead. The same happens for the hyperlinks within the container and so on... I can change them only by changing the classes of the skin.css file, but in this way I also change all the hyperlinks of the page! 

So, this is it... :( Any suggestions?

 

Howabout you let us take a peak at all the code.  Paste in in a legible format using the "past as plain text" icon in the text editor here on the forms, then highlight the important stuff, but include it completly.

Are you overriding everything?  Meaning, if you have two classes in two files you are aware that they both apply?  There are some wierd issues with things like font: compared to font-size etc etc.  sometimes when overriding, the attributes that are decared in a single line like font: or margin: instead of margin-left:  will not override properly.

 

 


Josh Martin
http://www.DNNReactor.com
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Urgent: CSS Priority in DNN
 


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.

 


Sunset Hill Solutions - Consulting and Development
We offer general DNN consulting services - including custom module development and commercial module integration/setup.
www.sunsethill.ca
MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com
Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com

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