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, ...Help with content layoutHelp with content layout
Previous
 
Next
New Post
5/11/2008 12:51 AM
 

Hi,

I'm trying to achieve this EXACT content layout using TABLES only:

Here is my code:

[table border="0" cellpadding="0" cellspacing="0" style="width: 100%;"]
        [tr]
            [td colspan="2" id="ContentPane" runat="server" class="contentpane"]
            [/td]
        [/tr]
        [tr]
            [td valign="top" id="LeftPane" runat="server" class="leftpane"]
            [/td]
            [td valign="top"]
                [table border="0" cellpadding="0" cellspacing="0" style="width: 100%; vertical-align:top;"]
                    [tr]
                        [td valign="top" id="ContentPane2" runat="server" class="contentpane2"]
                        [/td]
                    [/tr]
                    [tr]
                        [td valign="top"]
                            [table border="0" cellpadding="0" cellspacing="0" style="width: 100%;"]
                                [tr]
                                    [td valign="top" id="MiddlePane" runat="server" class="middlepane"]
                                    [/td]
                                    [td valign="top" id="RightPane" runat="server" class="rightpane"]
                                    [/td]
                                [/tr]
                            [/table]
                        [/td]
                    [/tr]
                [/table]
            [/td]
        [/tr]
        [tr]
            [td colspan="2" id="BottomPane" runat="server" class="bottompane"]
            [/td]
        [/tr]
[/table]          

However, I'm currently expriencing a very weird error. When I'm logged in, the layout is just fine. But when logged out, the row containing Middle & Right Panes (see image) drops out of the table.

You can see it here (notice the Media module before & after logging in):

http://en.pijaja.com/test-pijaja
Username:    test-pijaja
Pwd:   123456

Could anyone please help me troubleshoot this problem?

Thanks,

Duc

 
New Post
5/11/2008 6:24 PM
 

The only thing that I can see it that the following column <td> probably needs a colspan="2" attribute.  This does not explain why it displays differently when  logged in and when logged out.  I saved the sources of both pages and did a compare and there were lots of differneces.  Are you sure you are using the same skin as the admin portal skin and admin skin?  I am just guessing at this because other than the changed suggested above I do not see any problems with the HTML you have created.  It is hard to see what the issue is with the source becuase of all the tables generated by the modules.

 
New Post
5/11/2008 6:24 PM
 

The reason your page appears to work when you are logged in is probably a combination of luck and the extra markup generated by DNN. Your table definition is wrong for what you're after. Here's something closer to what you want;

<table border="1" cellpadding="0" cellspacing="0" style="width: 100%;">
   <tr>
      <td id="TopPane" class="toppane" colspan="3">Top Pane</td>
   </tr>
   <tr>
      <td valign="top" id="LeftPane" class="leftpane" rowspan="2">Left Pane</td>
      <td colspan="2" id="ContentPane" class="contentpane">Content Pane</td>
   </tr>
   <tr>
      <td valign="top" id="MiddlePane" class="middlepane">Middle Pane</td>
      <td valign="top" id="RightPane" class="rightpane">Right Pane</td>
   </tr>
      <tr>
      <td id="BottomPane" class="bottompane" colspan="3">Bottom Pane</td>
   </tr>
</table>

I ran your page http://en.pijaja.com/test-pijaja through the W3C Markup Validator at http://validator.w3.org/ and it shows quite a few errors with table related tags. You need to get your markup correct if you're going to stand any chance of having a reasonably reliable appearance, especially cross-browser.

Regards, Rhys

 


www.rmjcs.com - Mostly SQL Server Stuff
 
New Post
5/11/2008 10:04 PM
 

Check visibility on the modules in the panes.  Panes without visible content will collapse.

Jeff

 
New Post
5/12/2008 5:44 AM
 

Rhys wrote

The reason your page appears to work when you are logged in is probably a combination of luck and the extra markup generated by DNN. Your table definition is wrong for what you're after. Here's something closer to what you want;


  

     

  

  

     

     

  

  

     

     

  

     

     

  

Top Pane
Left Pane Content Pane
Middle Pane Right Pane
Bottom Pane

I ran your page http://en.pijaja.com/test-pijaja through the W3C Markup Validator at http://validator.w3.org/ and it shows quite a few errors with table related tags. You need to get your markup correct if you're going to stand any chance of having a reasonably reliable appearance, especially cross-browser.

Regards, Rhys

 

Thanks Rhys,

I tried this layout but it has a problem. See here.

The rows' heights seem to be equal, while the below row should expand to the maximum and fill in the rest. Is there anyway to get that done? It's pretty close, I believe.

Thanks very much for all your help.

Duc

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Help with content layoutHelp with content layout


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