Hello all. I am trying to make a website where the image size changes in accordance ot the side of the screen. However, when I set the image to take up 50% of the screen it simply doesn't change. I am currently using a JPEG /JPG file.
I kind of want it to look like how this websites image looks. I got it from a site called which asteroid will hit earth. (Pretty interesting but the code is what is most important). I want to attempt to replicate how that website changes its screen size in accordance to the screen. I went into the pages source code with inspect and replicated it into my code just to test it out. However the websites code did not have the same effect on my image.
This is the code I created:
<img src="ASPFORUMIMAGE.jpg" style="width: 75%;">
It is exactly what the website I linked does however it wont work for my image.
If you dont want to look at the website and see what I am doing wrong with my code please just help me find a way to change the size of my image for 75% of my screen.
I must figure out a solution for this very fast.. it is necessary. I have NO IDEA why it does not work. Please help..
Thank you all.