Category: html

Mousewheel prevent body scroll on modal 0

Mousewheel prevent body scroll on modal

Solution #1   // prevent background of modal from scrolling   // DOMMouseScroll for Firefox equivalent   $(document).on("mousewheel DOMMouseScroll", ".modal-backdrop, .modal-body", function(event) {     event.stopPropagation();     event.preventDefault();   });   // prevent background of...

CSS filter opacity for cross-browser transparency 0

CSS filter opacity for cross-browser transparency

Solution To reach almost all users now (in 2015) : opacity:0; filter: "alpha(opacity=0)"; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; The full CSS cross-browser (some might be useless now) opacity:0; filter: "alpha(opacity=0)"; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -moz-opacity: 0.5; -khtml-opacity: 0.5;  

Best ways to center align div with CSS 0

Best ways to center align div with CSS

Center align division with CSS Solution #1 - margin 0 auto This is an often-used and widely supported method and clean. However the drawback is you have to specify the width of the item....