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, ...Content panes donContent panes don't collapse at runtime - Please save me from tables!
Previous
 
Next
New Post
6/15/2008 8:08 AM
 

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 8:38 AM
 

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

 
New Post
6/15/2008 1:09 PM
 

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 8:07 PM
 

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.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Content panes donContent panes don't collapse at runtime - Please save me from tables!


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