Text Widget with Scrollbar?
-
Hi All,
I have been searching high and low for a way to make a
- widget with a scrollbar?
Given the fact googling has just resulted in finding other people asking for it. I hope here someone might point me to either another plug in that simply allows the user to put text in and have a sliding scroll bar?
It would be great to tick some box on the text widget in the future to have a scrolling option… Anyhow, help would be very much appreciated! I have automatic scrollers that are animated, but thats not what I am looking for.
Greetings, A
-
Hi,
Yes, it’s possible !
Here is the code to use in a text/html widget :
The overflow attribute is here to say ‘allow a scrollbar to see more content‘ in the 150 pixels of Height.<div style="overflow:auto;height:150px;"> <p>[First entry and a really long one to see how it handles a long line] Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> <p>Second entry</p> <p>Third entry</p> <p>Fourth entry</p> <p>Fifth entry</p> <p>Sixth entry</p> <p>Seventh entry</p> <p>Etc Etc...</p> </div>I’ve found this in a second !
http://onecoolsitebloggingtips.com/2008/08/17/adding-scroll-bars-to-text-widgets/Ah! thanks! It worked great!…. Not sure why I overlooked that one….
A
Is it possible to add this scroll code to the “Recent Posts” widget? We want to have all posts viewable, but obviously, this will eventually become long and cumbersome. A long list with a scroll bar would be the perfect solution. I’ve seen it done on other blogs (but they were not WordPress, don’t know if that makes any diff).
Thank you!
The topic ‘Text Widget with Scrollbar?’ is closed to new replies.