Home » none » DotNetNuke Panes Won’t collapse?

DotNetNuke Panes Won’t collapse?

Yesterday  I mentioned that I was trying to track down another issue with DotNetNuke when I discovered the FavIcon secret.

The problem I was trying to track down was the issue with panes not collapsing completely in IE when there is no content in them.

I actually owe the solution to a friend of mine who spent several hours tracking this one down, but since he doesn’t have a web site, I can’t link to him.  So, thanks Dan Wallace…. and get yourself a web site already.

So, the problem is that many skins provided for DotNetNuke, including the ones that come with DotNetNuke have multiple pane areas.  The ones that are particularly troublesome are the left and right panes.  Say you have a Left and Right Pane that are either set at a specific pixel or percentage width.  If you don’t put any content in those panes, you get a blank area on the page that is the specified width.

Ideally, if the content didn’t exist, the other content would move in to fill that space.  And, it should do that without having to use a separate skin on each page.  The whole point of using a skin is to provide some sort of consistency between pages.

It turns out that if you add a Visible=”false” attribute to the TD tag that represents the pane, the pane will collapse when no content is available.

Related Post

  • DotNetNuke Modules – Creating Base ModulesDotNetNuke Modules – Creating Base Modules Now that we have DotNetNuke installed into Visual Studio we can go ahead and create our first modules. Actually, creating the modules is pretty simple. But it is even easier to do it […]
  • DotNetNuke Skinning – ContainersDotNetNuke Skinning – Containers Today we move our focus to DotNetNuke containers. Not because we are done with skins, but because we can't go any further in our discussion of skinning until we cover containers.As […]
  • DotNetNuke Skins – Hello, WorldDotNetNuke Skins – Hello, World Now that we understand how the ASCX files and CSS files relate to each other, it's time to create our first skin file. Today we are going to deal primarily with the issues of […]
  • DotNetNuke – Missing Content in ModulesDotNetNuke – Missing Content in Modules A couple of days ago, a client of mine called and said he'd been working on his DotNetNuke site moving things around when suddenly he was unable to see his module content any more. Since […]
  • DotNetNuke – SkinningDotNetNuke – Skinning Today I'm going to start a separate series on Skinning DotNetNuke. Don't worry, I'm still planning to continue the series on creating modules. Later on, I may start a series on something […]

About Dave Bush

Dave Bush is a Full Stack ASP.NET developer focusing on ASP.NET, C#, Node.js, JavaScript, HTML, CSS, BootStrap, and Angular.JS.Does your team need additional help in any of the above? Contact Dave today.