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, ...Adding aditional layoutsAdding aditional layouts
Previous
 
Next
New Post
7/10/2010 3:30 PM
 
Hey Rick,

I'm trying to master this and having trouble figuring out the CSS floats and other parameters that make this work.  Would you (or anyone else)  please give me some examples of the CSS that would accompany the HTML above?

Thanks in advance.
 
New Post
7/12/2010 4:53 AM
 

David,

For the following HTML:

<div id="dnn_ContentPane"></div>
<div class="clear"></div>
<div id="dnn_LeftMarginPane"></div>
<div id="dnn_InnerContentPane"></div>
<div id="dnn_RightMarginPane"></div>
<div class="clear"></div>
<div id="dnn_LeftHalfPane"></div>
<div id="dnn_RightHalfPane"></div>
<div class="clear"></div>
<div id="dnn_FooterPane"></div>

I'd be using the following CSS

.clear{
clear:both;
}

#dnn_LeftMarginPane{
float:left;
width:enter width here;
margin-right:10px;
}

#dnn_InnerContentPane{
float:left;
width:enter width here;
}

#dnn_RightMarginPane{
float:right;
width:enter width here;
}

#dnn_LeftHalfPane{
width:enter width here;
float:left;
}

dnn_RightHalfPane{
float:right;
width:enter width here;
}

Let me know how you get on with this :)

Regards,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
7/14/2010 4:26 PM
 
Hi Rick,

Thank you so much for trying to help me with this.

In the part of the HTML and CSS that defines the three column layout, I can get it to work if all three columns are populated, but if one of the panes is empty, the other panes don't expand to fill the empty space.
 
New Post
7/15/2010 5:20 AM
 

David,

Div and CSS based layout are slightly different to table based versions of the past, mainly in that a 3 column layout won't become a 2 column layout when you don't add content to a pane. TD elements will expand to accommodate the open space if another TD is removed, but because the divs have widths attached to them, this doesn't happen.

What I tend to do is create 5 levels of pane layout. A 100% wide pane, followed by 2 x 50% panes, then 3 x 1/3rd panes and then a 2 column option with a LeftMarginPane and RightContentPane, and a 2 column option with a RightMarginPane and LeftContentPane.

This will cover most layouts, and any additional requirements can be added as a new row. Each pane this isn't used is given a css class, and I set the display for this css element to none in the skin.css file, which removes the pane from view on the live site.

Regards,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Adding aditional layoutsAdding aditional layouts


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