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

Forum

Subject: Scroll bar in content pane
Prev Next
You are not authorized to post a reply.

Author Messages
Marcusw
Nuke Pro
Nuke Pro
Posts:63

17 Jul 2007 4:48 PM  
Hi,

Can anyone tell me how to add a vertical scroll bar in the content pane of my skin. I suspect I need to creat a new CSS class element to do it but can't figure out the correct syntax?

If I could see any examples that'd also be great.

Thanks,

Marcus.
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2371


17 Jul 2007 5:33 PM  
The scroll bar would actually be attached to a module that lives in the content pane, or any other pane.

But, I think that most modules are set to expand vertically to the space that they need.

But, the real question is why do you want a scroll bar, and what do you want it to scroll? If you'll give us some idea of what you are trying to accomplish, that would help.

Joe Craig
DNN Creative Support
Subscribe to the website
Marcusw
Nuke Pro
Nuke Pro
Posts:63

18 Jul 2007 2:11 AM  
I need to be able to set my content pane to a fixed height (say 500px). Then when a Text/HTML module (for example) is placed inside it a vertical scroll bar appears inside the content pane (when the content is higher than 500px). Rather than the whole screen scrolling up and down.

I'm sure I've seen DNN sites that do this.

Cheers,

Marcus.
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

18 Jul 2007 3:11 AM  
Hello,

I use this CSS for displaying code on the site:

.codebox
{
    font-family: 'courier new',courier,monospace;
    color: #000;
    background:#E0E0E0;
    border: 1px dotted #999;
    padding: 10px;
    margin: 10px;
    overflow: auto;
}

If the code is wider than the display pane a horizontal scroll bar is automatically displayed, if you try this:
.codebox
{
    font-family: 'courier new',courier,monospace;
    color: #000;
    background:#E0E0E0;
    border: 1px dotted #999;
    padding: 10px;
    margin: 10px;
    overflow: auto;
    height: 100px;
}

when the height exceeds 100px a vertical scroll bar will be displayed


In your text / html module use:

( [] used instead of < > so that is displays in the forum

[div class="codebox"]the test text etc.[/div]

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
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

18 Jul 2007 3:13 AM  
PS. - If you want this to work for any modules that you insert into the pane, then you could apply this technique to either the skin or the containers.

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
Marcusw
Nuke Pro
Nuke Pro
Posts:63

18 Jul 2007 4:13 AM  

Thanks Lee!

I've managed to get that working inside my Text/HTML module but can't seem to get the syntax right in my skin. Here it is (ascx)....

[tr]
[td rowspan="3" colspan="3" valign="top" bgcolor="#ffffff" id="contentPane" runat="server"][p][/p][/td]
[td colspan="2" valign="top" bgcolor="#ffffff" class="menubackground"][p][/p][/td]
[td][img src="[%= SkinPath %]spacer.gif" width="1" height="1" border="0" alt=""][/td]
[/tr]

It's tricky putting the div in here without chnaging the layout of the table.

Cheers,

Marcus

 

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

18 Jul 2007 5:32 AM  
have you tried adding the class into the table cell?

[td rowspan="3" colspan="3" valign="top" bgcolor="#ffffff" class="codebox" id="contentPane" runat="server"][/td]


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
aggiedan97
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:24

30 Jun 2008 9:52 PM  
I am also in need of this exact functionality. However, I have attempted the above with no success.
[dnn ver. 4.7.01, IIS v.5.1]
10 paragraphs of lorem ipsum text

(css snippet)
.codebox
{
font-family: Verdana, Tahoma, Arial, Helvetica;
color: #000;
background:#E0E0E0;
border: 1px dotted #999;
padding: 10px;
margin: 10px;
overflow: auto;
height: 50px;
}

(html skin snippet)
<table cellpadding="3" cellspacing="0" width="60%" border="0" align="right">
   <tr>
        <
td class="codebox" id="ContentPane" runat="server" valign="top" align="center">td>
   >
>
aggiedan97
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:24

30 Jun 2008 10:12 PM  
Not sure what happened with the text editor above...

However, I applied the ... around the HTML text and it applied as expected. While I am most grateful, I would appreciate knowing how to apply this to a skin.

Thanks again for your input.
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2371


30 Jun 2008 10:56 PM  
The < and > were interpreted as tag delimiters. When you post code, make sure that both of those characters are surrounded by white space.

If you've done the css correctly and your content page has the right class, the code should work.

Joe Craig
DNN Creative Support
Subscribe to the website
aggiedan97
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:24

30 Jun 2008 11:00 PM  
Actually, the last two > > are not actually show that way..they are a product of attempting to edit my post in this forum.

this is the html snippet



"<table cellpadding="3" cellspacing="0" width="60%" border="0" align="right">

<tr><td class="codebox" id="ContentPane" runat="server" valign="top" align="left">td>

tr>

table>
"

aggiedan97
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:24

30 Jun 2008 11:01 PM  

nevermind, I can't seem to paste html in this editor without it accepting it as HTML text....~

jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2371


30 Jun 2008 11:02 PM  
Just put in the spaces ...

Joe Craig
DNN Creative Support
Subscribe to the website
aggiedan97
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:24

30 Jun 2008 11:06 PM  
try this again..

< table cellpadding="3" cellspacing="0" width="60%" border="0" align="right" >
< tr >
< td class="codebox" id="ContentPane" runat="server" valign="top" align="left" >< /td >
< /tr >
< /table >
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

01 Jul 2008 6:03 AM  
Hello,

So have you got this working in a content pane? table? or is that what you are attempting?

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
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

01 Jul 2008 6:05 AM  
PS. you can attach files in the forum, so if you want to zip up your code, you can attach a zip file.

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
aggiedan97
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:24

01 Jul 2008 6:26 AM  
Attached is the skin I am attempting to create the scrolling window within.

I was able to accomplish it by adding he ... within the HTML/text module.

In the attached skin I have attempted to add it to the content pane.

Attachment: 171263119971.zip

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

01 Jul 2008 7:02 AM  
ok, it works if we do this:

/*Code for scrolling HTML/text box*/
.codebox .Normal
{
    padding: 3px;
    margin: 3px;
    overflow: auto;
    height: 150px;
}

The problem is that DNN adds the Normal class to the text in each container, so we have specified that for any text that uses the Normal class inside the codebox class scroll the text

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
aggiedan97
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:24

01 Jul 2008 10:33 PM  
Well - I have good news and bad news...

Bad News - I updated ".codebox .Normal" and it didn't work.

Good News - based on something you stated about the .Normal evaluation made me think to move it after the actual .Normal evaluation in the css file.  As I understand it, this will cause it to be evaluated after the .Normal and therefore it is evaluated and not overriden.

Again, thanks a bunch and I appreciate everything.
You are not authorized to post a reply.
Forums > Users Lounge > Everything Else > Scroll bar in content pane



ActiveForums 3.7

Latest Forum Posts

Restricting DateEditControl till date by coder247
Hi All,   We are using the DateEditControl (for obvious reasons!!) in our application. But we want t...
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.
DotNetNuke Modules
RSS Feeds