How to index html table rows? or how to Auto-number table rows?

How to index html table rows or how to Auto-number table rows? CSS: Method 1 table {     counter-reset: rowNumber; } table tr {     counter-increment: rowNumber; } table tr td:first-child::before {     content: counter(rowNumber);     min-width: 1em;     margin-right: 0.5em; } JS: Method 2 (append with a new td) […]

How to make scroll to top ?

Scroll to top Scroll to top WordPress Amitpal Singh 1, Place the javascript code inside head tag: [html] <script type="text/javascript"> $(document).ready(function(){ $(window).scroll(function(){ if ($(this).scrollTop() > 100) { $(‘.scrollup’).fadeIn(); } else { $(‘.scrollup’).fadeOut(); } }); $(‘.scrollup’).click(function(){ $("html, body").animate({ scrollTop: 0 }, 600); return false; }); }); </script> [/html] 2, Place the style code in css file: […]

Bitnami