Select Page

Tag: CSS

How to disable CSS hovers in mobiles and touch devices

How to disable CSS hovers in mobiles and touch devices

You must have faced this issue such that the background changes on hovers on mobiles and touch devices remain hover-styled even after you have touched the screen and not touching it anymore. The simple solution to this is enclosing all hovers in the following media...

Momentum Scrolling on iOS Devices

Momentum Scrolling on iOS Devices Normally when you add overflow:scroll to an element with fixed height and width, the scroll-bar appears in desktop and mobile devices to scroll through the hidden part of the content. In iOS devices, they have momentum scrolling which...
Disable Text Selection Using CSS

Disable Text Selection Using CSS

Add this CSS style to elements you want to disable text selection and highlighting on selection. Mostly we need this on buttons and dropdown where users usually go for clicks and can accidentally select text. Check out this demo below and CSS code. DEMO Open demo in a...