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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Must have container displayed to have modules in content centered?Must have container displayed to have modules in content centered?
Previous
 
Next
New Post
6/23/2007 8:33 AM
 

John Mitchell wrote

You could also use the (Module Settings > Advanced Settings) Header & Footer fields to accomplish alignment.

In the Header:

In the Footer:

Here is another trick along the same idea.

In the Header:

In the Footer:

I've been working w/ DotNetNuke for about a year. Every so often I get a little frustrated by container/content positioning issues using the default skins. Today I went hunting for a solution and your DIV ALIGN and STYLE solutions in Header/Footer settings works nicely. Thank you, John. I'm quoting your post w/ a modified Subject because it's a post really worth reiterating.


If a problem can be solved, there's no use worrying about it.
If it can't be solved, worrying will do no good.
 
New Post
6/23/2007 9:23 AM
 

Thank you. I'm glad I could help.


DotNetNuke Modules from Snapsis.com
 
New Post
6/23/2007 10:24 AM
 

John Mitchell wrote

The problem with alignment is that the wrapper used for the module when you uncheck "display container",  puts the content in a span tag. Since span is an inline html element it does not have alignment capabilities (it is also an XHTML validation issue).

You could make your own "no container" that does not have any visible presentation, but still allows alignment if you wanted to work around this. The easiest way is to just change the "no container" container to use a DIV instead.  It is located in portals/_default/containers

John, the one thing I could not fully understand was how we might edit the 'No Container.ascx' file to achieve more alignment control. If you could take a few moments to explain this further, it might help those looking to use that method but are unsure about how exactly to do it.


If a problem can be solved, there's no use worrying about it.
If it can't be solved, worrying will do no good.
 
New Post
6/23/2007 10:29 AM
 

The No Container.ascx file uses a SPAN tag.  It needs to be changed to a DIV, or rendered as a block element by changing it's style if you want to be able to do alignment.

The best thing is to change it to a DIV since it is very likely that it will contain block elements and those are not allowed in a SPAN per W3C.


DotNetNuke Modules from Snapsis.com
 
New Post
6/23/2007 11:14 AM
 

Here is what is inside my DNN 4.5.3 '...\Portals\_default\Containers\_default\No Container.ascx' file:

And I think you're saying it is as simple as changing to:

But what is next? How would you do container/content alignment AFTER making this change to 'No Container.ascx'? Is there still a Header/Footer setting required, or are you saying to put the DIV ALIGN or STYLE commands right there inside the 'No Container.ascx' file?


If a problem can be solved, there's no use worrying about it.
If it can't be solved, worrying will do no good.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Must have container displayed to have modules in content centered?Must have container displayed to have modules in content centered?


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