Unfortunately the image turns out to be too big to fit in line with other elements.
I’d like to change the image’s size proportionately (the entire image ! Not only a part of it !)
to be of 20px width 20px height.
Can anyone show me the way to do it eithe in HTML or CSS ?
Thank
How big is your original image? Wouldn’t it be easier to just reduce the size of that image before you upload it? Have you tried changing your background-size: auto; to reflect a specific size?
Removing the text from the value attribute is bad practice because screen readers won’t know what that button does?
You would be better off using a button element with type of submit and placing the image in the html.
There are ways of hiding the text in an input type=submit but gets complicated for older browsers.
If you do go with your original code then size the button to match the size you have made the image but remember to remove all styling from the input button (borders, padding, background Colors, appearance etc)
But I bumped into a trouble of losing $_GET global so I changed to “Submit” where I lost my image.
I’ll follow your advice to change to “Button” before I lose my mind