Change input width for file upload if empty image CSS -


i make width larger of input[type=file] if image has not yet been uploaded. here i've been trying:

input[type=file] img[src=""] { width: 300px; } 

the input[type=file] , img[src=""] work when alone can't them work together.

please try below code:

input[type="file"] {   border: 1px solid #ccc;   border-radius: 4px;   width: 300px; } 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -