I'm currently attempting to make an image fill 100% of the height and width of the html element (specifically, I want it to fill the browser window). My CSS is set up like this:
html{
width: 100%;
height: 100%;
}
img{
width: 100%;
height: 100%;
z-index: 0%;
}
The width adjusts correctly, but the height remains unchanged. I even tried setting the height to 2%, but it made no difference. I don't want to use pixels for height because I need this to be mobile-responsive. Height, why are you not cooperating?