The Resizable Table CDN provides a simple and efficient solution for creating resizable table columns in web projects. This CDN includes CSS and JavaScript files that allow users to adjust the width of table columns by dragging the column borders. The resizable table is designed to be easy to integrate and customize, providing a seamless user experience.
- Easily resizable table columns by dragging the column borders.
- Lightweight and efficient implementation.
- Accessibility enhancements for keyboard navigation.
- Compatible with various table structures and designs.
- Customizable CSS styles to match your project's design.
Include the resizable_table.css file in the <head>
section of your HTML file to apply the necessary styles:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Dinakar2329/resizable_table.github.io/resizable_table.css?version=0">
Create the HTML table structure in the <body>
section of your HTML file. Add the resizable
class to the table headers (<th>
) that you want to make resizable.
<table class="resizable">
<thead>
<tr>
<th class="rs-column">Column 1</th>
<th class="rs-column">Column 2</th>
<th class="rs-column">Column 3</th>
<!-- Add more columns as needed -->
</tr>
</thead>
<tbody>
<!-- Table data rows go here -->
</tbody>
</table>
Include the resizable_table.js file just before the closing </body>
tag of your HTML file to add resizing functionality to the table:
<script src="https://cdn.jsdelivr.net/gh/Dinakar2329/resizable_table.github.io/resizable_table.js"></script>
Customize the table structure and populate it with your data as needed.
Save your HTML file and open it in a web browser to test the resizable table functionality. Adjust the column widths by dragging the column borders. Customize the CSS styles and table structure to integrate it seamlessly into your web project.
For avoiding conflicts with other ::before
or ::after
effects in the table, the rs-column
class has been added to multiple columns.
Here's a basic example of how to use the resizable table in your HTML file:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Resizable Table Example</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Dinakar2329/resizable_table.github.io/resizable_table.css">
<style>
/* Custom styles can be added here */
</style>
</head>
<body>
<!-- Place your resizable table HTML code here -->
<script src="https://cdn.jsdelivr.net/gh/Dinakar2329/resizable_table.github.io/resizable_table.js"></script>
</body>
</html>
This project is licensed under the MIT License. See the LICENSE file for details.