make text unselectable CSSCode1234-webkit-user-select: none; /* Safari */ -moz-user-select: none; /* Firefox */-ms-user-select: none; /* IE10+/Edge */user-select: none; /* Standard */123456789.noselect { -webkit-touch-callout: none; /* iOS Safari */ -webkit-user-select: none; /* Safari */ -khtml-user-select: none; /* Konqueror HTML */ -moz-user-select: none; /* Old versions of Firefox */ -ms-user-select:...
Friday, March 24, 2023
CSS Hacks – text not highlightable
how to make text not highlightable CSSCode1234-webkit-user-select: none; /* Safari */ -moz-user-select: none; /* Firefox */-ms-user-select: none; /* IE10+/Edge */user-select: none; /* Standard...
CSS Hack – Background image fit
CodeBackground image fit123456body { background-image: url(images/mybackground.svg); background-size: cover; /* <------ */ background-repeat: no-repeat; background-position: center center; /*...