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, ...How do you change the width of the LeftPane on a site?How do you change the width of the LeftPane on a site?
Previous
 
Next
New Post
11/20/2008 8:43 PM
 

I would like to make the left pane of my DNN site much narrower. It has no content on it. The site is based on the DNNGray template.

I have tried changing and even removing every reference to "width" in every CSS file I can find. Nothing seems to make a difference. I can however change the background-color - in various different css files (portal.css, and skin.css).  So, there must be some invisible content of something preventing the actual width from changing. 

Can someone point me in the right direction? 

 
New Post
11/21/2008 10:24 AM
 

Widths can be set in several places within the skin itself, and in numerous CSS files.   Sometimes it is a royal pain to figure out how they set a specific width, and if you change it you might end up messing up the rest of the layout.

But, you're lucky, the DNN-Gray has it set only one place, the Skin.css file:

.leftpane {
 width: 175px;
 background-color: transparent;
 padding-left: 6px;
 padding-right: 4px;
 padding-top: 6px;
}

 

 
New Post
11/21/2008 11:54 AM
 

 
You might find it handy to NOT change your default skin files but, instead, override a skin's CSS on a page-by-page or portal-by-portal basis:

PAGE-BY-PAGE:
Use a page's PAGE HEADER TAGS setting to override certain style settings on a particular page.

   <style>.leftpane {width: 175px}</style>


PORTAL-BY-PORTAL:
Use the site's STYLESHEET EDITOR (under ADMIN->SITE SETTINGS) to override style settings for a particular portal.

   (Find the ".leftpane" entry and set the width attribute or simply add a new ".leftpane" entry to the bottom of the CSS to override any previous entry)


You may not care either way for a DNN installation with a single portal but I work with multiple instances and often with dozens of portals within the same instance -- I find it very useful to leave the default "host" skin files intact and make any desired changes at the portal or page level.

Cheers!
-mamlin

 


esmamlin atxgeek.me
 
New Post
11/22/2008 1:36 PM
 

True... Whenever I want to modify a pre-existing skin, I usually make a copy of it and modify the copy instead.

 
New Post
11/24/2008 4:44 PM
 

Dan Ball wrote
True... Whenever I want to modify a pre-existing skin, I usually make a copy of it and modify the copy instead.

I totally agree (copy and only modify the copy).  We tend to leave original skins intact and rename modified copies in order to identify those copies as having been modified.  But then we also tend to load up DNN instances with dozens of portals so skin management is probably more of a concern for us than it is for admins who only run a few portals per DNN instance.

Modifying CSS at the page or portal level is a handy and "safe" way of quickly trying out changes that should eventually be rolled into a copy of the skin, as Dan said.  Overall performance will be better with all the CSS rolled into the skin.


esmamlin atxgeek.me
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How do you change the width of the LeftPane on a site?How do you change the width of the LeftPane on a site?


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