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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Trouble with tablesTrouble with tables
Previous
 
Next
New Post
4/17/2007 6:23 AM
 

Hi all,

I need to create some table structure with product data.
One of the demands is that the first 3 rows (art nr, description, image for example) have to be visible all the time, the other attributes must be able to scroll down.

     
     
     
 These rows need to be 'sticky'



     
     
     

 These rows need to be scrollable, but in a way that the 'sticky' rows will be visible all the time.


Does anyone have an idea how to achieve this? I experimented by using two html modules, the first one contained the sticky table, the other one the other attributes. I made the second html module scrollable. This works pretty well but its not a great solution.

Thanks!

 
New Post
4/17/2007 10:22 AM
 

Personally your solution is the first thing that came to mind.  Otherwise the only thing I can really think of is to use javascript to make the sticky header.  I am not exactly sure of the script but if you google for something like persistent javascript header, or absolute text positioning with javascript you should find it.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
4/17/2007 10:51 AM
 

You can do this with HTML and CSS in a single HTML module like this:

            <div>
            <table>
                    <tr height="40">
                        <td>Col 1</td>
                        <td>Col 2</td>
                        <td>Col 3</td>
                    </tr>
                    <tr height="40">
                        <td>Col 1</td>
                        <td>Col 2</td>
                        <td>Col 3</td>
                    </tr>
                    <tr height="40">
                        <td>Col 1</td>
                        <td>Col 2</td>
                        <td>Col 3</td>
                    </tr>
            </table>
     </div>
            <div style="overflow: scroll; height: 100px">
            <table>
                    <tr height="40">
                        <td>Col 1</td>
                        <td>Col 2</td>
                        <td>Col 3</td>
                    </tr>
                    <tr height="40">
                        <td>Col 1</td>
                        <td>Col 2</td>
                        <td>Col 3</td>
                    </tr>
                    <tr height="40">
                        <td>Col 1</td>
                        <td>Col 2</td>
                        <td>Col 3</td>
                    </tr>
            </table>
     </div>

Nik

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
New Post
4/17/2007 10:54 AM
 

Paulspann:

I have used in the past a DIV to sorround the table I needed to scroll.  The trick is to define a style for the DIV as

Style="overflow: auto; height: 100;"

Let's see if it works here: 

   
   
   
   
   
   
   
   
   
   

 You may want to research the "Overflow" parameter for DIV in CSS as I don't think is part of the true standard but it works in most browsers.

Carlos

 

 
New Post
4/17/2007 10:56 AM
 

Okay, I took too long putting my post together

It is the same solution though.

Carlos

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Trouble with tablesTrouble with tables


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