Misc
The first slide will be randomly chosen from available slides every time page reloads. DEMO Open demo in a full window – https://demos.webdevpuneet.com/bootstrap/v4/random-slide/index.html Logic Used (jQuery) Just need to add this code after including jQuery and...
Misc
Here is a method to make div or any other HTML element/tag scroll down to the bottom on a page load. The script uses the jQuery library. jQuery Code / Logic Used $(window).on(‘load’, function(){ sh = $(“#element”)[0].scrollHeight;...
Misc
I think this function is very important and included by almost all websites nowadays with medium to long page lengths. As a user, it feels very tedious to scroll up to the top of websites once we have scrolled down to the bottom of a long page. The function is written...
Misc
Autofill usually changes the background color but in some areas, we don’t want that default color, so this script is to change the default color. Just add the following pseudo-selector to your style sheet and the background color will change according to your...
Misc
Portrait and landscape media queries for mobiles and ipads in css? Here is Portrait and landscape media queries for mobiles and ipads in CSS. CSS Media Query for Portrait Orientation @media screen and (max-device-width: 767px) and (orientation: portrait) {...