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, ...Panes donPanes don't expand to their defined width !!!!
Previous
 
Next
New Post
9/12/2008 11:14 PM
 

 Hi

I'm designing skin for DNN 4.8.4. I need to expand my containers according to the width of panes they are in. The problem is with right and left panes. I defined the pane's width in CSS as 175px. If container has only text data within it then the pane reduces itself to a minimum width like 100px or something. In other words they never come right.

The container's main table's width is set to 100%, following is my CSS for Panes:

 

.leftpane {

width: 175px;

background-color: transparent;

padding-left: 0px;

padding-right: 0px;

padding-top: 6px;

}

.contentpane {

width: 100%;

background-color: transparent;

padding-left: 15px;

padding-right: 15px;

padding-top: 6px;

}

.rightpane {

width: 175px;

background-color: transparent;

padding-left: 0px;

padding-right: 0px;

padding-top: 6px;

}

 

This is the code in skin ascx file

 

      <table width="1024" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="leftpane" id="LeftPane" runat="server" valign="top" align="center"></td>
        <td class="contentpane" id="ContentPane" runat="server" valign="top" align="center"></td>
        <td class="rightpane" id="RightPane" runat="server" valign="top" align="center"></td>
      </tr>
    </table>

 

 

 

 

 
New Post
9/13/2008 6:19 AM
 

The reason for that is that you have a total width for more then 100%. The 100% width pane will take as much space as it can, pushing the other panes outwards. (... yes I know it's like that in the DNN_blue skin too ;-)

So just don't set the contentpanes width, an empty pane gets a class .DNNEmptypane and a width:0 from default.css (from 4.6 I think)

But beware, your pane must be really empty, so use

<td></td>

not
<td>
</td>

 
New Post
9/13/2008 7:49 PM
 

Thanks Timo Breumelhof. I removed the pane width attribute of content pane so it wouldn't take all available space, but now the content pane doesn't expand to full width if there's no module in right or left pane.. It shows empty area in place of empty pane while the content pane remains with the same shorter width   

 

.leftpane {

width: 175px;

background-color: transparent;

padding-left: 0px;

padding-right: 0px;

padding-top: 6px;

}

.contentpane {

background-color: transparent;

padding-left: 15px;

padding-right: 15px;

padding-top: 6px;

}

.rightpane {

width: 175px;

background-color: transparent;

padding-left: 0px;

padding-right: 0px;

padding-top: 6px;

}

 

What am I missing???

 

 
New Post
9/15/2008 11:56 AM
 
Hi, I'm completely new to dnn but as a css designer I think I can answer this for you...

Timo was right and that should work for you.

The problem is that you have three table cells, left and right both set to 175px and the center taking up the rest. Just because there is no content in the right or left panes does not mean that they will disappear. You have defined a set with for that td and that's the way it will stay.

They will simply be empty table cells with a width of 175px, hence the empty space.

Like I said, I'm completely new to dnn and am just finding my way around. If it was classic asp I'd do something like
if contentpaneleft has content
then write out the table cell
else
ignore and just have a two column table
end if

The other solution is to not set any widths in your container table (using divs over tables is much neater though), but have your widths in the modules that will appear within the containers. Hope that makes some sort of sense and helps. If I've got it wrong regarding what you are trying to acheive apologies, just ignore my rambling!
 
New Post
9/15/2008 4:52 PM
 

A pane without content will get a class DNNEmptyPane.

Example:

<td id="dnn_LeftPane" class="LeftPane DNNEmptyPane"/>
<td id="dnn_ContentPane" class="ContentPane">
</td>
<td id="dnn_RightPane" class="RightPane DNNEmptyPane"/>

These get a width:0 in default.css

Since the width you give them is in skin.css, the width:0 is being overwritten.

So you have to add:

.DNNEmptypane{
width:0;
}

in your skin.css below the width definition of the left and rightpane

 
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Panes donPanes don't expand to their defined width !!!!


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