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, ...CSS hock for spesific pageCSS hock for spesific page
Previous
 
Next
New Post
4/26/2006 6:19 PM
 
Hi,
Is there a way to make a CSS rule for one specific page? I want to change the width on the ContentPane on one page.
Thanks ArntK

Arnt O. Kvannefoss Software Consult AS Microsoft Certified Partner www.SwcWeb.net www.pamelding.net www.softwareconsult.no
 
New Post
4/26/2006 7:23 PM
 

Absolutely - and there are two ways -

You can change the class on the content pane you want modify - eg.. contentpane02 - put that into your skin.css

Or you can create a css file - which you rename to the skin file name to the file name and it will pick it up. eg.. portalhome.ascx and portalhome.css  - it will read the new class in there.

Nina Meiers


Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
4/26/2006 7:58 PM
 

If you wanted to do it for just one specific page, you could put an ID on an element that includes the tabname with code like this:

<td id=Content_<%= PortalSettings.ActiveTab.TabName %>>

And then in your CSS you could target that element like this:

#Content_Home {

width:500px;

}

You can't use the same elemenet as the runat=server one that is actually the ContentPane because it has a server side id, but you could put it in your skin like this:

<td id=Content_<%= PortalSettings.ActiveTab.TabName %>>
<span runat=server id=ContentPane> </span>

</td>

Then all your modules will get inserted into the inner span tag and the outer TD element will control the width.

 


DotNetNuke Modules from Snapsis.com
 
New Post
4/27/2006 9:15 AM
 
Nina,
Regarding your second suggestion. I wasn't aware of that. Let me make sure I understand you correctly... If I have a group of skins, I use a skin.css file that they all share. In addition to that, I can have a CSS file relating to a specific skin file (i.e. PortalHome.ascx and PortalHome.css)? If so, that's great! I never knew that. I could've used that before.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post
4/27/2006 5:46 PM
 

Thanks for the input, but wath I meant was if there is a css hock in the pages already - from the DNN framework. I don't want to change the skin, but correct some rendering on one page. I hope this make sense and I am sorry if my question was unclear.

Thanks ArntK


Arnt O. Kvannefoss Software Consult AS Microsoft Certified Partner www.SwcWeb.net www.pamelding.net www.softwareconsult.no
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CSS hock for spesific pageCSS hock for spesific page


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