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

Forum

Scroll bar in content pane
Last Post 2008-07-02 03:33 AM by Aggiedan97. 18 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
dnnerUser is Offline
Nuke Pro
Nuke Pro
Posts:67

--
2007-07-17 09: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.


    Joseph CraigUser is Online
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9315
    Avatar

    --
    2007-07-17 10: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 DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    dnnerUser is Offline
    Nuke Pro
    Nuke Pro
    Posts:67

    --
    2007-07-18 07: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.


    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2007-07-18 08: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/DNNCreative

    Lee Sykes's Facebook Profile
    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2007-07-18 08: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/DNNCreative

    Lee Sykes's Facebook Profile
    dnnerUser is Offline
    Nuke Pro
    Nuke Pro
    Posts:67

    --
    2007-07-18 09: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

     



    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2007-07-18 10: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/DNNCreative

    Lee Sykes's Facebook Profile
    Aggiedan97User is Offline
    Nuke Master
    Nuke Master
    Posts:139

    --
    2008-07-01 02:52 AM
    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>
       >
    >


    Aggiedan97User is Offline
    Nuke Master
    Nuke Master
    Posts:139

    --
    2008-07-01 03:12 AM
    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.


    Joseph CraigUser is Online
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9315
    Avatar

    --
    2008-07-01 03:56 AM
    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 DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    Aggiedan97User is Offline
    Nuke Master
    Nuke Master
    Posts:139

    --
    2008-07-01 04:00 AM
    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

    <TD class=codebox id=ContentPane vAlign=top align=left runat="server">

    "<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>
    "



    Aggiedan97User is Offline
    Nuke Master
    Nuke Master
    Posts:139

    --
    2008-07-01 04:01 AM

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



    Joseph CraigUser is Online
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9315
    Avatar

    --
    2008-07-01 04:02 AM
    Just put in the spaces ...



    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    Aggiedan97User is Offline
    Nuke Master
    Nuke Master
    Posts:139

    --
    2008-07-01 04:06 AM
    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 >


    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2008-07-01 11: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/DNNCreative

    Lee Sykes's Facebook Profile
    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2008-07-01 11: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/DNNCreative

    Lee Sykes's Facebook Profile
    Aggiedan97User is Offline
    Nuke Master
    Nuke Master
    Posts:139

    --
    2008-07-01 11: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.

    171263119971.zip

    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2008-07-01 12:02 PM
    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/DNNCreative

    Lee Sykes's Facebook Profile
    Aggiedan97User is Offline
    Nuke Master
    Nuke Master
    Posts:139

    --
    2008-07-02 03:33 AM
    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.


    Active Forums 4.3

    Latest Forum Posts

    PCI Compliance with PayPal integration by Aggiedan97
    Recently it was brought to my attention that sites (companies of sites) that handle the selling of g
    RE: Active Forums vs. DNN 6.2 CE by Joseph Craig
    I haven't really previewed it, but my understanding is that pretty much everything except the "Mail
    RE: horizontal main and submenu items by Joseph Craig
    If you could show a page as an example, that would help. Basically, you can put multiple menus on
    Active Forums vs. DNN 6.2 CE by Aggiedan97
    Active Forums will no longer be offered with the debut of DNN 6.2 which is promising to integrate Ac
    Google Analytics Module by Aggiedan97
    I'm in need of providing a GA module that displays GA charts, graphs, and reports internal to DNN si
    RE: horizontal main and submenu items by Dan Glanton
    I'm not sure. One of the tutorials show using 2 horizontal menus with one being the submenu. This do
    RE: Different search icon for each portal by Joseph Craig
    Are you using the same skin in each portal? If so, and assuming that you are using the SiteIconURL
    Different search icon for each portal by Bill Swanson
    How do I use a different search icon for each portal in dnn 6.1.4?
    RE: horizontal main and submenu items by Joseph Craig
    Do your requirements fit with any of the available templates?
    RE: horizontal main and submenu items by Dan Glanton
    I went ahead and upgraded to the DDR to make sure I have the best updated menu possible. What I woul
    RE: DNN 6.2 by Joseph Craig
    The release notes that came with the beta version of the software should indicate if the version can
    RE: horizontal main and submenu items by Joseph Craig
    Part of the answer will depend on the menu that you are using in your skin. I strongly recommend th
    DNN 6.2 by Sameer
    Hi All i am using dnn 6.2 beta version for my demo site i need to custmize the 4 modules in that
    RE: Deploying dnn by Sameer
    Thanks a lot so kind of you
    RE: Unable to Create Skin Package by schilders
    Joe, When I click the Edit icon next to the skin package on the Host Extensions page, I receive t
    horizontal main and submenu items by Dan Glanton
    I found a very good tutorial on horizontal main and subitems in DNN Creative, but what about if you
    RE: Skin creation - Menu questoni by Joseph Craig
    This has to do with the structure of the elements that make up the skin and the CSS. Most likely, y
    Skin creation - Menu questoni by CDMeyer
    I have a skin and when I add more menu items to the nav bar than can fit in one row of nav, the seco
    RE: FCK Editor in DNN 6 by Pingle2009
    Just to follow on from Joe's reply, the 'official' line seems to be that not only that the old FCK E
    RE: Slice a Site by Dan Glanton
    Thanks, I'll look into that when I get a chance.
    You are not logged in.
    You must log in to access all 
    650+ videos, tutorials, podcasts, and more.
    RSS Feeds