Answers for "css style placeholder"

CSS
32

css style placeholder

input::-webkit-input-placeholder {/* Chrome/Opera/Safari/Edge */
	/*styles here*/
}

input::-ms-input-placeholder { /* Microsoft Edge */
   /*styles here*/
}

input:-ms-input-placeholder {/* IE 10+ */
	/*styles here*/
}

input::-moz-placeholder {/* Firefox 19+ */
	opacity: 1; /*Firefox by default has an opacity object that usually is ideal to reset so it matches webkit*/
	/*styles here*/
}

input:-moz-placeholder {/* Firefox 18- */
	opacity: 1; /*Firefox by default has an opacity object that usually is ideal to reset so it matches webkit*/
	/*styles here*/
}

input::placeholder {
	/*styles here*/
}
Posted by: Guest on February-25-2020
4

placeholder css

::-webkit-input-placeholder {color: pink;} /* Chrome/Opera/Safari */
::-moz-placeholder { color: pink;} /* Firefox 19+ */
:-ms-input-placeholder { color: pink;} /* IE 10+ */
:-moz-placeholder {color: pink;}  /* Firefox 18- */
Posted by: Guest on October-09-2020
1

placeholder text css

input {
  border: 1px solid black;
  padding: 3px;
  height: 300px;
}

input:placeholder-shown {
  border-color: teal;
  color: purple;
  font-style: italic;
}
Posted by: Guest on March-14-2021
0

input placeholder css

::placeholder {
  color: red;
}
Posted by: Guest on April-21-2021
0

css style placeholder

<!DOCTYPE html>
<html lang="en">
   <head>
      <title>Placeholder - Style</title>
      <style>
         ::placeholder {
            color: green;
         }

         .force-opaque::placeholder {
            opacity: 1;
         }
      </style>
   </head>
   <body>
      <input placeholder="Default opacity..." />
      <input placeholder="Full opacity..." class="force-opaque" />
   </body>
</html>
Posted by: Guest on February-22-2021
-1

css style placeholder

::placeholder {
  /*styles here*/
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  /*styles here*/
}
Posted by: Guest on June-08-2020

Browse Popular Code Answers by Language