TinyPortal

Development => Feedback => Topic started by: ltdeta on October 15, 2007, 04:20:28 PM

Title: menublock vetical scrollbar
Post by: ltdeta on October 15, 2007, 04:20:28 PM
i need a vertical scrollbar for the menublock

i have a lot off menuitems and the box will be higher and higher

can anybody help please :)

Title: Re: menublock vetical scrollbar
Post by: IchBin on October 15, 2007, 05:12:06 PM
This would require to edit some of the tinyportal files. If I were you, I would just custom code a menu and change that menu to have a scroll bar.
Title: Re: menublock vetical scrollbar
Post by: Lesmond on October 16, 2007, 12:01:10 AM
Place this in a script block, changing the links to suit, not very tidy but it works ok  ???

<style type="text/css">
* {
margin: 0;
padding: 0;
}
body {
margin: 20px;
}
#content {
margin-left: 20px;
width: 50%;
height: 20em;
overflow: auto;
background: #gray;
}
</style>



<div id="content" style="width: 150px; height: 150px">
<b><a href="http://www.anylink.net">Link 1</a></b>
<p><b><a href="http://www.anylink.net">Link 2</a></b></p>
<p><b><a href="http://www.anylink.net">Link 3</a></b></p>
<p><b><a href="http://www.anylink.net">Link 4</a></b></p>
<p><b><a href="http://www.anylink.net">Link 5</a></b></p>
<p><b><a href="http://www.anylink.net">Link 6</a></b></p>
<p><b><a href="http://www.anylink.net">Link 7</a></b></p>
<p><b><a href="http://www.anylink.net">Link 8</a></b></p>
<p><b><a href="http://www.anylink.net">Link 9</a></b></p>
<p><b>Link 10</b>
<p><b>Link 1</b></p>
<p><b>Link 2</b></p>
<p><b>Link 3</b></p>
<p><b>Link 4</b></p>
<p><b>Link 5</b></p>
<p><b>Link 6</b></p>
<p><b>Link 7</b></p>
<p><b>Link 8</b></p>
<p><b>Link 9</b></p>
<p><b>Link 10</b><p>&nbsp;</div>