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
Post a Comment