Search
 
SCRIPT & CODE EXAMPLE
 

CSS

check if input is empty css

/* If input is not empty */
input:not(:placeholder-shown) {
  /* You need to add a placeholder to your fields. For example: <input "placeholder=" "/> */
  border-color: green;
}

/* If input is empty */
input:placeholder-shown {
  border-color: red;
}
Comment

PREVIOUS NEXT
Code Example
Css :: html center div in middle of page 
Css :: media queries css not working for mobile 
Css :: half circle css 
Css :: image to fill div 
Css :: css rotate animation 
Css :: mettre une image au milieu css 
Css :: css remove blue outline button 
Css :: mobile responsive css 
Css :: remove arrow summary tag css 
Css :: css center horizontally and vertically 
Css :: smooth transition css on hover 
Css :: centralizar div no meio da tela 
Css :: css border bottom 
Css :: span wrap html 
Css :: tailwindcss init full 
Css :: make text not selectable html js css 
Css :: cursor disabled 
Css :: grid center 
Css :: prevent screen reader from reading text out loud css 
Css :: ion-item no padding ionic 4 
Css :: absolute position div center 
Css :: css mobile friendly 
Css :: css remove scrollbars 
Css :: google font roboto 
Css :: css animation stop at the end 
Css :: horizontally align button 
Css :: shadow on hover class on card bootstrap 
Css :: css shadow border 
Css :: how to position something on the same line css 
Css :: on clicking a link it gets red color 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =