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
https://forums.phpfreaks.com/topic/265422-long-div/
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
https://forums.phpfreaks.com/topic/265422-long-div/#findComment-1360382
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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