Jump to content

Div Vs. Iframe


Recommended Posts

Here is what im trying to accomplish. I am currently displaying contacts in a table in which the columns are customizable in what data they display. Im trying to avoid losing my column headers as I scroll down.


What is the best way to accomplish this. Whether im using a scrollable div or an iframe, my problem is that the columns dont necessarily have a set width. It depends which contacts are being displayed at the time. so I can't really hardcode a width on each column to match the header to the div or iframe below.


What would you suggest?




Link to comment
Share on other sites

Hi Jacques.

I recently encountered a similar problem, and was able to solve it using a scrollable table with fixed header. I found it here.


The code in this example works specifically for the page itself, so I had to do a lot of studying to see what I could use and what I could do without. Eventually I made it work, and it's brilliant!


I don't know if it will work for your purpose, but it's the only solution I found after a lot of searching.


Best of luck.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...