Copy link to clipboard
Copied
Hi friends,
I am working on coldfusion 10 and i have the following requirement,
How I need to display 100 records in first page with 18 records visible and remaining 82 records visible should be through scroll bar.
Your help is greatly appreciated.
Thank you in advance.
Copy link to clipboard
Copied
You could do it simply, using Cascading Style Sheets (CSS) and some experimentation. An example to illustrate:
<html>
<head>
<style>
div.scroll_it {
/*width: 60%;*/
height: 340px;
overflow: scroll;
}
</style>
</head>
<body>
<!--- This part contains arbitrary page content --->
<div class="scroll_it">
<!--- Display the 100 records here --->
</div>
</body>
</html>
Place the DIV element in the location of the page where you wish to display the records. Then experiment by increasing or decreasing the value of the CSS height attribute until there are exactly 18 records visible. Et voilĆ !