Answers for "css remove input field selection"

CSS
0

how to remove text selection in css

/*Copy below for all browsers */
* {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: -moz-none;
    -o-user-select: none;
    user-select: none;
}
Posted by: Guest on March-05-2021
0

how to remove input background on select oin css

*:-webkit-autofill,
*:-webkit-autofill:hover,
*:-webkit-autofill:focus,
*:-webkit-autofill:active {
    /* use animation hack, if you have hard styled input */
    transition: all 5000s ease-in-out 0s;
    transition-property: background-color, color;
    /* if input has one color, and didn't have bg-image use shadow */
    -webkit-box-shadow: 0 0 0 1000px green inset;
    /* text color */
    -webkit-text-fill-color: red;
    /* font weigth */
    font-weight: 300!important;
}
Posted by: Guest on July-06-2021

Browse Popular Code Answers by Language