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, ...How to create a gap (padding) between modulesHow to create a gap (padding) between modules
Previous
 
Next
New Post
5/11/2012 12:11 PM
 

Hi,
I have 3 modules that are below each other and they are touching each other but i would like to create a 5px or 10px gap in between the modules.
I have been reading that the header and footer sections in the modules settings can be used for this kind of thing, but i do not know how to go about it.

Does anyone have any suggestions?
Kind regards,
Matt


 
New Post
5/11/2012 12:42 PM
 

You'd probably want to add the spacing to the container. When I make any containers, I wrap them in a div with a class of Container then in the css you can just give that Container class a top and bottom margin.

Example ASCX:
<div class="Container>
    <dnn:ACTIONS runat="server" id="dnnACTIONS" />
    <div class="ContainerTitle"><dnn:TITLE runat="server" id="dnnTITLE" CssClass="Title" /></div>
    <div class="ContainerContentPane" runat="server" id="ContentPane"></div>
</div>

Example CSS:
.Container { margin: 10px 0; }

 
New Post
5/12/2012 2:21 PM
 

Hi,
Many thanks for the reply, but i don't know if i have the knowledge to do what you said, as I just buy skins and containers off snowcovered.

I was hoping that there maybe a simple piece of code that would go in either the header or footer in the module settings. As i recently found out that i can align left, right and centre by using div tags in the header and footer, and i guess i'm looking for the same kind of thing to add pading/margin.

the containers that i'm trying to alter can be seen here: http://www.reason4tutorial.com/Produc... 

Any ideas?
Cheers,
Matt

 
New Post
5/12/2012 4:20 PM
 
Hi Matthew, low tech solution I have used in the past in this situation is to add a HTML module in between the modules, add a space in the text editor (you might need to adjust the font size to achieve the size of the gap you want) and untick Display Container in the module settings. That will give you what I call a "buffer zone". Hope that helps!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to create a gap (padding) between modulesHow to create a gap (padding) between modules


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