I recently (yesterday) started learning html since I want to create my own webpage.
Well, all I did so far is re-writing an already existing test website. Also I got ~100 commands for html with an explanation what it does from my teacher. Since I'm rather familiar with coding languages, I was able to understand how frames work based on the code of other websites.
So I tried it out a little bit and stumbled upon a problem when using pictures inside frames.
The design in general is to be like the docs. A header on top, a menu on the left side and the big body on the right side.
For the header I want to use a picture. My problem: The picture is rather big and I want the website to crop it while centering it vertically in order for it to behave like the header of the docs of median when increasing/reducing the size with alt+ mousewheel.
My code looks like that:
home:
► Show Spoiler
Header:
► Show Spoiler
What I already tried:
- align /valign with <img>
-<center>
-css as seen above and the 2 other possiblites to enter css (also different ways with css like center or align)
-div in multiple ways
-block in css
-all the above with the picture being inserted as a background
-about 5 other possibilites I found across the internet that I can't quite remember.
But the problem remains: I only see the top of the image and not the center in the frame.
tl/dr: pls help me to vertically align an oversized picture in a frame as a header.
btw: Stonewolf gave me a hint on how it should work:
oh, then if you just give a background-image to your frame's main div, then manually set your frame's height, then it will only display as much as it can
But i don't quite get how that is meant. (Don't worry, I'll PM him in a min so he can help me as well

Thanks everybody for helping me understand a bit more of html!