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, ...Content Pane with border and background color - collapsed border shown when emptyContent Pane with border and background color - collapsed border shown when empty
Previous
 
Next
New Post
6/28/2013 3:47 PM
 

I have two left pane areas.  One I'd like to have a border and background color handled via CSS; SolidLeftPane.

Issue is that when the pane is clear with nothing in it, it's still showing it's border at the top of the left pane. 

How do I remove this so it doesn't show it's collapsed border?  Thanks..

<div id="contentWrapper" class="wrapper"> <!-- ContentWrapper -->
     <div id="content"> <!-- Content -->
          <div id="ContentPane" class="ContentPane clearfix" runat="server"></div>
          <div id="LeftPane" class="LeftPane clearfix" runat="server"></div>
          <div id="SolidLeftPaneContent" class="SolidLeftPaneContent clearfix">
               <div id="SolidLeftPane" class="SolidLeftPane clearfix" runat="server"></div>
          </div>
          <div id="RightPane" class="RightPane clearfix" runat="server"></div>
          <div class="clear"></div>
         <div id="BottomPane" class="BottomPane clearfix" runat="server"></div>
         <div class="clear"></div>
   </div>
</div>

#contentWrapper {background-color:#ffff; padding:0;}
#contentWrapper #content {/*background:url('images/ContentTop.png') repeat-x 0 0;*/ background-color:#fff; min-height:20px; padding:10px 0;}
#contentWrapper #content .ContentPane {width:760px; padding:0 5px;}
#contentWrapper #content .LeftPane {float:left; width:263px; padding:0 7px 0 5px; border-right:3px solid #000;}
#contentWrapper #content .SolidLeftPaneContent {float:left; width:263px; padding:0 7px 0 5px; border-right:3px solid #000;}
#contentWrapper #content .SolidLeftPane {float:left; width:259px; padding:0 2px; background-color:#eef1f7; border:1px solid #7f8083;}
#contentWrapper #content .RightPane {float:right; width:480px; padding:0 5px 0 7px;}
#contentWrapper #content .BottomPane {width:760px; padding:0 5px;}

 
New Post
7/2/2013 9:38 AM
 

I just add this to all of my skins. This class gets added by DNN to any pane not in use (check it out with Firebug):

.DNNEmptyPane {display: none} 

 
New Post
7/2/2013 10:21 AM
 
Another solution is to not set padding for your panes but a margin for the containers. That way they only use space when they contain a module..
 
New Post
7/2/2013 10:21 AM
 

Great!  Thank you very much.  This worked.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Content Pane with border and background color - collapsed border shown when emptyContent Pane with border and background color - collapsed border shown when empty


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