image placeholder css code example

Example 1: 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- */

Example 2: create transparent placeholder img

from PIL import Image
img = Image.new('RGB', (32,32), color='white')
img.save('empty.png')
quit()

Example 3: create transparent placeholder img

convert -size 32x32 xc:white empty.jpg

Tags:

Misc Example