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 Layout in text/html modulesContent Layout in text/html modules
Previous
 
Next
New Post
1/13/2012 9:42 AM
 

Hi all,

What are the common methods of laying out content inside of text/html modules? At the moment I use a combination of personalised css styles (for text), basic image formatting through the GUI and tables for more complex designs. I'd like to move away from tables and use CSS but I don't know how best to do this within a text/html module.

Are there any wysiwyg drag and drop editors which export self contained css/html you can simply paste into the module for example?

 
New Post
1/13/2012 12:59 PM
 

You can place your content in div containers and use inline css styles to specify their properties. If you are not familiar with css layouts there are a number of on-line generators and tutorials. Just search for css layout. Here is an example of a two column div layout contained in a 650px wide div holder.

<div id="divholder" style="width:650px;">
<div style="width:200px; padding:10px; margin-left:20px; margin-right:30px; background-color:silver; float:left; " >
<p>Left div content</p></div>
<div style="width:300px; display:inline-block; padding:10px; border:1px black dashed; ">
<p>Right Div content</p></div>
</div>

Here is what the above code looks like:

Left div content

Right Div content

 

I would note however that placing your css in a separate file is the preferred method. I often will add it to the skin.css file. You can the assign your div's a class and then you don't have to rewrite the css inline every time you want to use it.

For example you could have a class named divLeft and divRight and the css you look like this:

#divholder {
    width:650px;
}

.divLeft {
    width:200px;
    padding:10px;
    margin-left:20px;
    margin-right:30px;
    background-color:silver;
    float:left;


.divRight {
    width:300px;
    display:inline-block;
    padding:10px;
    border: 1px black dashed;
}

Your html would then look like this:

<div id="divholder">
<div class="divLeft"><p>Left div content</p></div>
<div class="divRight"><p>Right Div content</p>
    </div>
</div>

Hope this helps

Rich

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Content Layout in text/html modulesContent Layout in text/html 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