Jump to content

[SOLVED] scroll a div tag with JS


valtido

Recommended Posts

Hi i have researched about this but most of them lead me to scroll up and down which is not what i need.

 

I need to scroll a divs content left & right.

e.g.

<img src="left_arrow.jpg"><div>contents goes here</div> <img src="right_arrow.jpg">

 

please note that the div should be on one line which i have managed to make it using css white space: nowrap.

 

Please ask any questions if you are confused.

Thnx

Link to comment
https://forums.phpfreaks.com/topic/142127-solved-scroll-a-div-tag-with-js/
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.