Set Module Widths
Last Post 01/30/2006 3:47 AM by Lee Sykes. 1 Replies.
Author Messages
Jon Adamson
Nuke Newbie
Nuke Newbie
Posts:1


--
01/29/2006 5:37 PM  
I need to set the width for various modules that are shown in the rightpane. I've designed a custom skin and set the width for the rightpane at 200px. I've also designed a rightpane container and set the width at 100%. But when I view the site all the widths for any modules in the rightpane are all different. Is there any way to set this? I do not want to be limited to only using the "text/html" module.

Many thanks,
Jon
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
01/30/2006 3:47 AM  
Hi Jon,

If you compare your skin with the DNN-Blue skin you will see that this skin creates a table to hold the left, content and right panes. This table is set to a width of 100% and each of the content cells does not have a width specified to allow it to automatically re-size dependant on the module that you have inserted.

You will find that if you try to specify a set width for a pane, the skin will not necessarily stick to that width. The reason for this is based on the length of the titles in your modules that you insert into the page. - If you add a long title to the module, the skin will re-size the container and pane to accomodate that title and display the title on one line. - All of the containers within the same pane will also now display at the same width as the module with the long title.

If you find a title is too long and you want to display it on a couple of lines, you could use the break tag within the title - ie. - This is a very long < br / > title on two lines

If you become stuck with your own skin designs and layout issues, it is worth adding the same content to the DNN-Blue skin to see if it reacts in the same way. - This way you know if it is your own skin design that is causing problems, or whether you need to re-think how you are adding content to a page.

Hope this helps, if it doesn't, do you have a link to provide an example of what you are trying to achieve?

Thanks,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile


---