Adding scrollbars to text widgets - Scrollbars in Text Widget - Text Widget with scrollbars

Adding scrollbars to text widgets - Scrollbars in Text Widget - Text Widget with scrollbars This article will guide you how to add a scrollbar to text widget.

Please insert the following code before the content of your widget:

 

 

<div style="overflow:auto;height:150px;">



After the end of content widgets please insert the following code:



</div>



The number 150 is the height of the widget, you can change to suit with your blog.



For example, I have a text widget contents as follows:



<div style="overflow:auto;height:150px;">

<p>First entry</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></div>

0 Response to "Adding scrollbars to text widgets - Scrollbars in Text Widget - Text Widget with scrollbars"

Post a Comment