I have a website when on the main page there is a full screen image. Image aspect ratio is 16:9 (1920x1080px).
Now, if everything is displaying very well on screen using 16:9 aspect ratio, when I run this site using 4:3 screen (lets say : 1280x1024px) I got blank space below the image.
I'm using skdslider.
Div that contains image has CSS:
.skdslider {
width:100%;
position: relative;
display: block;
overflow:hidden;
height:100vh !important;
}
This is the image CSS:
.skdslider ul li img {
width: 100%;
height:auto;
border:0;
}
The element hierarchy is like below:
.skdslider > ul > li > img
What I'm trying to achieve is to remove this blank space on 4:3 aspect ratio screen. It's like - scaling somehow outside div height to this inner image height so there won't be white gap.
Could not reach it by any known to me ideas. Any suggestion? Once again, I'm using skdslider, priority is for 16:9 screen where images are 100% width / 100% height. On 4:3 screen image don't have to be 100% height, but I need to remove somehow this blank space.