Is it possible to scroll the table past line 11?

Is it possible to split a table into two lines (<hr /> <hr>) while maintaining the row height so that rows after the 11th row are only visible upon scrolling? My HTML code is quite lengthy, making it easier to understand with an example. Click here to view the example: see example

style code:
html { height: 100%; width: 100%; }
body { height: 100%; width: 100%; margin: 0; padding: 0; border: 0; background: #FFFFFF;
  font: 13px/15px Verdana,Arial,Helvetica,sans-serif; }
img { border: none; }
table, tr, td, th { 
    border-collapse:collapse; 
    vertical-align: top; 
    text-align: left;
    font: 13px/15px Verdana,Arial,Helvetica,sans-serif; }
a { color: #8D0D19;}

table.bordered tr th, table.bordered tr td { 
    border: 1px solid #000000;


    }
table caption, table th, table td {
    margin: 2px;
    padding: 2px 2px;
    vertical-align: top;
}

#pagination .selected { font-weight: bold; color: #8D0D19;}
table tr.odd {
    background: none repeat scroll 0 0 #E5E5E5;
}
table tr.even {
    background: none repeat scroll 0 0 #F0FFF0;
}
table{
    margin: 5px auto;
}
#tablestyle{
    height:250px;
}
th {
    background: azure;
    color: #000000;
    font-weight: bold;
}
table tr.even:hover,  .hover{
    background:#A2D2E1;
    }

table tr.odd:hover, .hover{
    background:#BBB2E1;
    }
table tD:hover, .hover{
    background:#FFFF00;
    }
.display{
    background:red;
    width:250px;
    height:20px;
    font-size:20px;
}   
.edittd
{
font-size:14px;
width:200px;
background-color:yellow;
border:solid 1px #000;
padding:4px;
}
.statuSnoChange{
    font-size:14px;
    width:100px;
   height:20px;
    background:azure;
}
.statuSChange{
    font-size:14px;
    width:150px;
     height:20px;
    background:#FFFF00;
}

Answer №1

To enable scrolling beyond the current height of 250px for your div, simply include overflow:auto; in your CSS for #tablestyle.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Dreamweaver's JSON stringify works perfectly in preview mode, but fails to function when accessed from the .AIR file after application creation

For a while now, I've been working on a basic application using Adobe AIR, specifically the HTML and JavaScript version. What this application does is submit a form to an online URL, with the form values being converted to JSON strings. In order to ...

Converting HTML to plain text - unclear source encoding

I am currently working on a project involving PHP where I extract HTML content from websites, convert them into plain text, and store them in a database. The challenge I am facing is that I do not know the original encoding of the content. What would be t ...

Navigating to an offline HTML webpage using JavaScript in a PhoneGap application

I am currently developing a phonegap application. I am attempting to create a login feature where upon clicking the submit button on the Login.html page, I should be directed to a local HTML file. Login.html <tr> <td>&nbsp;</td> ...

What is the best approach for implementing form validation that is driven by directives in AngularJS?

Currently, I am working on creating a registration form using AngularJS. I need to use the same form in four different sections. To achieve this, I have created a common form within a single HTML page as shown below: <div> <div> < ...

Dealing with a passed EJS variable in string form

When working with passed data in ejs, I usually handle it like this and it works perfectly: let parsed_json = JSON.parse('<%-JSON.stringify(passed_data)%>'); However, I encountered a problem when trying to dynamically pass a string variabl ...

Changing the Background Color of the Toolbar in Ionic

I am having trouble making the background color of my footer dynamic. I have tried binding the element to a class or applying dynamic styling, but it doesn't seem to work. Even when I have this in my HTML: <ion-footer align="center" style="height: ...

Expanding the content of :before

I have implemented the code below to enable a hover effect when users hover over an image: &:before ' content: "example image" Background: #444; Padding: 20px Height: 300px Width: 300px Font family: 'open sans' Opacity: 0; ' &: ...

css effect of background image transitioning on mouse hover

Is there a way to have an element on my webpage with a background image that follows the movement of the mouse when hovered over? I want it to be similar to this website: This is the HTML code I currently have: <section id="home" data-speed="3" data-t ...

Broadcast live video on your website using VLC/Red5 or any other streaming platform of your choice

Currently, my home website is built using Java/SpringMVC web server. I am looking for a way to stream my webcam feed on my website so I can access it from any browser and see the live view of my room. If anyone has recommendations for an easy-to-use solut ...

I am encountering issues with my local storage not saving data, without any apparent reason. This is my first time

I have a function that is triggered when the page loads. It successfully saves items until the page is refreshed. Now, I want to use this array to calculate the maximum score for future games. Since I am new to using JSON, some explanation would be appreci ...

Populate your HTML with JSON data

I need some guidance on how to achieve a specific task. I have a PHP file that retrieves data from a MySQL database and returns it in JSON format. Now, I want to display this data in HTML with "data_from_json" replaced by "18.5". Any assistance would be gr ...

What is the proper way to incorporate this jQuery slider plugin into my website?

I've successfully implemented the HTML and CSS, but I'm struggling with inserting the jQuery and plugin correctly. My familiarity with jQuery and JavaScript is limited, so I think I might be placing them in the wrong location, creating confusion ...

Is there a way to retrieve all child nodes of an element, including the text nodes, from a Selenium WebElement?

Looking for help with parsing this Java Selenium application element: <span class="text-small-teaser d-none d-sm-inline-block cut-job-address swissdev-grey-text"> <span class="icon-building mr-1" aria-hidden="true" ...

The tabs in bootstrap appear to be functioning properly, but the data is not displaying as expected

Currently, I am incorporating Bootstrap into my project and I am attempting to include a Twitter Bootstrap tab. I have already added jQuery and bootstrap-tabs.js to my project. Below is the script that I have added: <script> $('#myTab a&apos ...

Overruled fashion

Here is the HTML code from my custom page: <div class="notes quotes-notification member-savings f-left"> <h2>My Notifications</h2> <ul> <li><b>I need to make some changes in the HTML, different from other pages you have ...

Ways to constrain checkbox choices to only one within an HTML file as the checklist with the checkboxes is being created by JavaScript

I am working on developing an HTML dialogue box to serve as a settings page for my program. Within this settings page, users can create a list of salespeople that can be later selected from a drop-down menu. My current objective is to incorporate a checkbo ...

Validation of HTML5 forms for AJAX button submission

I am working with a form that utilizes the new HTML5 form validation feature, which I find to be beneficial. However, I do not like how pressing the button causes the page to refresh (form submit). Instead, I would like to use AJAX to update specific page ...

The impact of a water droplet image on the reaction

Hello everyone, I am seeking assistance regarding CSS as the chatroom dedicated to CSS is currently empty. I am attempting to create a water drop effect but haven't had much success so far. Could someone guide me in the right direction? I have tried u ...

Retrieve data from a MySQL table based on a specific condition in PHP

Can someone assist me with fetching data from a table where the valid_from date is less than a specified date (excluding the current date)? I have a table that looks like this: view my table here For instance, if my date is 02-04-2015, I would want to re ...

What is the best way to stop event bubbling in react-router-dom when using the <Link> component?

Hey there! I have a situation that I need help with. I tried putting the Link around the whole post so that I could prevent bubbling for individual buttons, but for some reason stopPropagation() is not working as intended. Following advice from another s ...