give your image container a percentage width, so when the screen is resized or the user looks at a smaller monitor, the container will adjust. side by side to keep the correct use of image width / height below css on the image tag.
max-width:100%; max-height:100%;
imal hasaranga perera
source share