You need to Register for free and Login to post a message in the forum.

Forum

Subject: Fixed Container Skin
Prev Next
You are not authorized to post a reply.

Author Messages
mnguyen4311
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:7

20 Jun 2008 9:45 PM  
Hello Forum,

I'm new to DNN and been playing around with the DNN-Blue skin.  I've noticed that the container will expand to fit the length of any modules even though I am using the fixed width skin.  Where do I force the container to be a fix width and height?  eg. I want my container width to be 200px and if any module title that is longer than 200px it will either wrap around or the font will decrease to fit into the 200px restriction.  Thanks for your help.

-Minh
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

25 Jun 2008 5:03 AM  
Hello,

If you look in the skin.css file for the DNN Blue skin you will see the widths for each content pane are specified in the:

.leftpane
.contentpane
.rightpane

classes.

So, there you can change the width for each of the content panes. However, if you add a text module into a content pane with a width of 200px and you place in the text / html module an image of 250px it will still force the width wider to 250px, so you need to be careful what type of content you add into the content panes so that it does not expand the widths. Thanks,

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

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
mnguyen4311
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:7

01 Jul 2008 3:14 PM  
Hi Lee,

Thanks.  I guess my question was really, how do I force the width to be 200px even if the image in text/html module is 250px and not expand to fit the image?
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

02 Jul 2008 3:29 AM  
ok, I've just spent a while testing various elements in the default DNN Blue skin with DNN 4.8.4

If an image is larger that the width, there is no method for not allowing it to expand the width of the content pane.

However, it is possible to get the Titles to wrap.

The problem is with how the DNN Blue Container has been set up.

Open: Image Header - Color Background.ascx

look for this line:

< TD valign="middle" width="100%" nowrap > < dnn:TITLE runat="server" id="dnnTITLE" / >< / TD >

remove nowrap

This will allow the titles to wrap to the correct width

Also I noticed that I could not set the correct widths for the content panes, this is also caused by the container, look for the last line:

    < img src="< % =SkinPath % >spacer.gif" height="10" width="150" border="0" >

Delete this line as it forces all containers to have a min width of 150px

Then to resize the width of the content panes, look in the skin.css file for:

.leftpane{
    width: 50px;
    background-color: transparent;
    padding-left: 6px;
    padding-right: 4px;
    padding-top: 6px;
}

.contentpane {
    width: 100%;
    background-color: transparent;
    padding-left: 6px;
    padding-right: 4px;
    padding-top: 6px;
}
.rightpane {
    width: 50px;
    background-color: transparent;
    padding-left: 6px;
    padding-right: 4px;
    padding-top: 6px;
}

Here you can see on the left and right panes I have reduced the width to 50px

Hope this helps, thanks,

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

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > Skinning Toolkit > Skinning Toolkit > Fixed Container Skin



ActiveForums 3.7

Latest Forum Posts

RE: Email Set UP per Portal by jncraig
I think that the answer depends on how email is configured at your host. You'll probably have to co...
RE: skin/container error load by jncraig
I would suggest checking permissions for directories. Does this occur only when you upload a skin...
RE: Add New Profile Properties by jncraig
Hmmm ... I don't have an answer. Does anyone else?
RE: No Access for me too by ristori
it is ok now. Thanks for this action.
skin/container error load by islandman
Has anyone else run across this error when loading skins or containers from site settings?I am using...
Email Set UP per Portal by islandman
How do I set up a unique email address per domain name off 1 hosting environment. for example...m...
RE: localhost Install issues by cdees
Lee: I wanted to follow up on this for anyone following this thread. I have been unable to solve t...
RE: Add New Profile Properties by WSI
HI Joe, The DNN version is 4.5.5. Thanks, Cliff
Change Skin on URL by vinita
Hi,Can the skin be changed based on the url used to access a portal. Multiple portal aliases may be ...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
Best DNN portal ever! by derpir
I have been a subscriber since august 2008, and DNNCreative.com is simply the best DNN Portal, their...
RE: skinning trouble by derpir
Hello Yes could you be so kind and take a look att the htm-file and css-file.I would be very gratef...
Search function is not working by kishorpawar
I am using Seach module in my project but not working, i have set   host setting alsoHost --> Schedu...
RE: backend is changing from sql2005 to sql2008 by leesykes
hello,There should not be any code changes needed, but you'll need to make sure that SQL 2008 upgrad...
RE: skinning trouble by leesykes
Hello,I would need to see your code to help you with this one, you can zip up your files and attach ...
RE: Installing DotNetNuke 4.9.00 on VWD 2005 w/ SQL server 2008 by leesykes
I have run a test with SQL Server 2008 express and DotNetNuke installed in exactly the the same way ...
RE: Issue 39 Interview by leesykes
thanks Bill, glad it was useful, we will have a think about the best way to approach this,Thanks,
RE: Issue 39 Authentication by leesykes
yes I have a live site in 4.9.0 at it seems stable as well.
backend is changing from sql2005 to sql2008 by meenu
hi all advance thanks. in my DNN0408 website am using sql2005 as backend.now planning to remove sq...
AppTheory
RSS Feeds