Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Help with content layout
Previous Previous
 
Next Next
New Post 5/10/2008 9:51 PM
User is offline duchoangle
450 posts
vn.pijaja.com
8th Ranked


Help with content layout 

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


Pijaja.Com - Innovative Site Builder

Sirius - Free skin for Dotnetnuke

 
New Post 5/11/2008 3:24 PM
User is offline Shawn Mehaffie
1995 posts
5th Ranked




Re: Help with content layout 

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 3:24 PM
User is offline Rhys
51 posts
10th Ranked


Re: Help with content layout 

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 7:04 PM
User is offline Jeff Cochran
1371 posts
6th Ranked


Re: Help with content layout 

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

Jeff

 
New Post 5/12/2008 2:44 AM
User is offline duchoangle
450 posts
vn.pijaja.com
8th Ranked


Re: Help with content layout 

 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


Pijaja.Com - Innovative Site Builder

Sirius - Free skin for Dotnetnuke

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Help with content layout
 


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.

 


DNN Photo Gallery
DNN Photo Gallery is a truly unique photo management module released January 1st 2006. With DNN Photo Gallery you can REALLY integrate images into your existing portal and make them look like they were designed for your site.
DNN Photo Gallery
Swirlhost Inc.
Affordable DotNetNuke Hosting, Skin Development, Custom Module Development, and DotNetNuke Consulting. We will install your preference of DNN and now host with us and get a free license for the Swirl AJAX Chatroom Module.
www.swirlhost.com
Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP