Jump to content

long div


gerkintrigg

Recommended Posts

Let's say I want to be able to scroll a lot of information within a defined div tag, how would I be able to render it so that the div could contain (potentially) an infinate number of images, all rendered along side each other, and then output them into one div that only scrolls horizontally?

 

I've done this: http://www.truro.com/pages/Ghostly~Publishing/Ghostly~Publishing.html but as you can see, it's not really very workable in its current form.

 

Any suggestions?

Link to comment
Share on other sites

Can you explain a little more what you're trying to achieve?

 

Is it that you want the purple header to be horizontally scrollable?

 

If so, try something like this:

 

<div style="width: 400px; height: 200px; overflow: hidden; overflow-x:scroll;border: 1px solid #000;">

      <div style="height: 100px; width: 5000px; border: 1px solid red; margin-top: 30px;">
     
       THIS IS WHERE YOUR CONTENT GOES

      <div/>

</div>

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.