@kamilwysocki I tried adding that but it doesn't change anything.
Thanks! By the way, is there any way to position the image so that it stays in center? Sorry for the silly question but I am still at the learning stage!
Edit: I think I got it. Changing display: block; to display: inline-block; does the job!