Join our DNN Community    (Newsletter, Tips, Tricks and Forums for DNN Skins & Modules)

 


 
Microsoft Gold Certified Partner - DNN Benefactor

DotNetNuke Powered! 


Friday, December 05, 2008 Register · Login · Contact · Search:  
Company Solutions Portfolio Contact
Forums
Tips and Tricks
Discussion of the popular 'Tips and Tricks' from the Newsletter. Questions or comments regarding the provided tips, or other general tricks of the trade.
Subject: Issues with your table layout when there is no content in panes?
You are not authorized to post a reply.
 
Author Messages
cchodnicki
Cruiserweight
Posts:107

07/18/2005 9:14 AM Alert 
As per DNN documentation - Content panes are containers for the content modules which are automatically injected at runtime. Content panes are simply HTML tags with some custom attributes specified which allow them to interact with the DotNetNuke skinning engine. Allowable content pane HTML tags include <TD>, <DIV>, <SPAN>, and <P>. At a bare minimum you must have at least one content pane and it must be appropriately named "ContentPane". Content panes do not need to be contiguous they can be located anywhere on the page. Content panes are collapsible as well this means that if they contain no content at runtime, that they will be become invisible. If you are creating HTML skins then you can use the [CONTENTPANE] skin object to identify areas in your design where content will be injected.

Solution - Make each pane a separate table. This resolves most table issues.

Example
Incorrect Method:

<table width="100%" border="0">
 
<tr>
   
<td ID="LeftContentPane" runat="Server" align="center" valign="top">td>
   
<td ID
="ContentPane" runat="Server" align="center" valign="top">td>
   
<td ID="RightContentPane" runat="Server" align="center" valign="top">td>
  
tr>
table>

Correct Method:

<table width="100%" border="0">
 
<tr>
   
<td align="center" valign="top">
     
<table width="100%" border="0" cellspacing="2" cellpadding="2">
       
<tr>
         
<td ID="LeftContentPane" runat="Server" align="center" valign="top">td>
       
tr>
     
table>
   
td>
   
<td align="center" valign="top">
     
<table width="100%" border="0" cellspacing="2" cellpadding"2">
       
<tr>
         
<td ID="ContentPane" runat="Server" align="center" valign="top">td>
       
tr>
     
table>
   
td>
   
<td align="center" valign="top">
     
<table width="100%" border="0" cellspacing="2" cellpadding="2">
       
<tr>
         
<td ID="RightContentPane" runat="Server" align="center" valign="top">td>
      
tr>
     
table>
   
td>
 
tr>
table>

Happy Nuking!

You are not authorized to post a reply.
Forums > Dotnetnuke > Tips and Tricks > Issues with your table layout when there is no content in panes?



ActiveForums 3.6
Latest Post
 
At R2integrated (formerly Bi4ce), we take support seriously.  That's why we support our customers and DNN community with daily monitoring from our experienced engineering team.  We ask that the first step taken is to read the relevant documentation and support forums prior to submitting any questions that may already be available or have been answered.  We ask that you review the documentation that we provide for our products before posting a question.

The Forums are for our customers to chat, exchange ideas and strategies, and submit feedback.  Please be sure to perform keyword searches for previous related forum responses.

To be helpful when submitting a new item, please include the following: 
  1. DNN Version
  2. Module Version
  3. Admin Log Viewer Information
  4. Environment detail: Operating system, .NET framework version, database and version, IIS version, Browser version (if appropriate)
We always try to respond quickly and monitor the forums daily during business hours (EST).  Occasionally, requests for a specific project requirement may not apply for the free support offered. For project specific support please submit via our Information Request form.

Thank you for using our Forums.

Click here to register for the Forums
 
© 2008 by R2integrated (formerly Bi4ce) | DNN® is a registered trademark of DotNetNuke Corporation