redazu
New Coder
I'm sure this is a joke to figure out for anyone that knows any html, but I've literally been stuck on this for like 3 days.
I just want to have an image that's tall and skinny displayed in the browser where the image is contained, none of it getting cut off. It scales up to the biggest it can get and the limit is always either the window height or width. Do not want any distortion, the image must maintain it's shape. Body/background be solid black. I expect to have black space on either side of the image since it's a portrait style image.
That's the easy part for me.
Now I also need to display a small image that's like the size of a button on top of that image and it has to stay in it's place no matter what. It also has to scale with the big image whenever the big image has to scale up or down to fit the window. I also want the text OK to be displayed in the middle of that small image and it must also stay there and scale just like the small image does.
Like imagine having a piece of paper and you draw a square on it. Then you write OK in that little square. Then you magically scale that paper up and down, the square and text does too.
I just want to have an image that's tall and skinny displayed in the browser where the image is contained, none of it getting cut off. It scales up to the biggest it can get and the limit is always either the window height or width. Do not want any distortion, the image must maintain it's shape. Body/background be solid black. I expect to have black space on either side of the image since it's a portrait style image.
That's the easy part for me.
Now I also need to display a small image that's like the size of a button on top of that image and it has to stay in it's place no matter what. It also has to scale with the big image whenever the big image has to scale up or down to fit the window. I also want the text OK to be displayed in the middle of that small image and it must also stay there and scale just like the small image does.
Like imagine having a piece of paper and you draw a square on it. Then you write OK in that little square. Then you magically scale that paper up and down, the square and text does too.