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  |  

AspDotNetStoreFront
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Content panes don't collapse at runtime - Please save me from tables!
Previous Previous
 
Next Next
New Post 6/15/2008 6:08 AM
Unresolved
User is offline BeeMarie
83 posts
10th Ranked


Content panes don't collapse at runtime - Please save me from tables! 

Hello,

 

I've spent about an hour searching to see if anyone else has had this problem. I haven't used ANY tables in my new skin. Everything is done with CSS. It has been a huge struggle and I've been tempted over and over to go back to tables when stuff didn't work right, but I've perservered! I finally have forced myself to figure out how to make the floats work. Everything on my page is sitting where I told it to!

But, if I insert a module into one of the content panes, the other panes above and below it that are empty don't collapse. With table-based content panes, this was never a problem.

I hope someone cal help me with this. I don't want to go back to using tables for my panes after all this effort!

Here's a link to the working page if it helps: www.amgdraftinganddesign.com

Here's one expample of my css for a pane. All my panes are the same as below except maybe different widths or some float left and some float right.

#contentPane

 

 

{
clear: both;
background-color: transparent;
width: 100%;
position: relative;
float: left;
text-align: center;
margin-left: auto;
margin-right: auto;
padding: 0;
color: black;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: normal;
z-index: 3;
height: auto; }

 

 
New Post 6/15/2008 6:38 AM
User is offline duchoangle
450 posts
vn.pijaja.com
8th Ranked


Re: Content panes don't collapse at runtime - Please save me from tables! 

Add visible="false" to your pane in the skin's ascx, for example:

<div id="contentpane" runat="server" visible="false"></div>

This will make the pane collapse if it's empty.

HTH,

Duc


Pijaja.Com - Innovative Site Builder

Sirius - Free skin for Dotnetnuke

 
New Post 6/15/2008 11:09 AM
User is offline BeeMarie
83 posts
10th Ranked


Re: Content panes don't collapse at runtime - Please save me from tables! 

Thank you for your suggestion. However, adding that to my code did nothing at all.

More research shows the following facts:

     1. display: none;    /* makes your object not display, and doesn't reserve any space for it so it is totally invisible
     2. visibility: hidden   /* makes your object not display, but, space is reserved for it on the page so it leaves an empty space
     3. visibility: collapse   /* makes your object not display, but doesn't reserve any space for it so it is totally collapsed

Problem: Version 1 hides it completely. Version 2 leaves unwanted space on the page. Version 3 is a nice idea that isn't supported by any browsers that I could find.

So how do we make a css div contentpane collapse at runtime? Surely someone has figured this out, or are we still using tables for our content panes? If we are, I could have saved alot of time and headache just going ahead and using tables. I'd have been done with this project a week ago.

Someone please give me some useful advice?

Thanks!

~Bee

 
New Post 6/15/2008 6:07 PM
User is offline duchoangle
450 posts
vn.pijaja.com
8th Ranked


Re: Content panes don't collapse at runtime - Please save me from tables! 

Empty panes that have the attribute visible="false" will collapse at runtime when viewed by users who do not have page's Edit permission. It'll do nothing when you're logged in as Admin.

But maybe I misunderstood your intention. I'll take a look at your live site.

P.S: site not accessible.


Pijaja.Com - Innovative Site Builder

Sirius - Free skin for Dotnetnuke

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Content panes don't collapse at runtime - Please save me from tables!
 


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.

 


EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com
Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com

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