HomeHomeUsing DotNetNuk...Using DotNetNuk...Skins, Themes, ...Skins, Themes, ...Panes donPanes don't expand to their defined width !!!!
Previous
 
Next
New Post
9/12/2008 8: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 3: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>


Web applications, DNN websites, modules, skins and support
 
New Post
9/13/2008 4: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 8: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 1: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

 

Web applications, DNN websites, modules, skins and support
 
Previous
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Skins, Themes, ...Skins, Themes, ...Panes donPanes don't expand to their defined width !!!!


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.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.