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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...How to center module in content pane?How to center module in content pane?
Previous
 
Next
New Post
10/20/2010 12:38 AM
 
Well i have already done that but module is not aligning itself to the center of the page.
This is more like of skinning question, i will appreciate if you can have a look at b/m link:

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/109/threadid/377307/scope/posts/Default.aspx
 
New Post
10/20/2010 3:57 AM
 

Akhtaru,

Although this is a fairly straight forward task to do, I think you do need some experience of web design to fully appreciate the ins and outs of skins for DNN. I'm not sure how much you know, so I'll quickly outline my angle on this and then give you options to explore.

As I'm sure you're aware, the panes are where the content of your site goes, and these panes, in most cases, define the available areas within the template, and also control the width of the module content that's placed within them. So when you place a module into the pane, it makes sense that it should be touching the edges of the pane, as it's making full use of the available space.

So when it comes to defining the width of a module, you really have 2 options.

1. Re-define the pane structure to better suit the layout you're after - with div and CSS based skins this should be changable within the skin.css or skinname.css file.

2. Target the module/container in question and alter the width, margin, padding of this. As long as the skin has an XHTML doctype you should be able to set the width of the modules wrapping element, and by setting the margin to "0 auto" it will center the block element.

I hope the info above is useful, and if you can provide a link to the page/module in question, I'd be happy to take a look and provide a more difinitive solution.

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
10/21/2010 12:59 PM
 

@Rick

Thanks a lot mate :) Thanks for your detailed reply.
only after your directions, i was able to sort it out..

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...How to center module in content pane?How to center module in content pane?


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