79665528

Date: 2025-06-14 02:49:30
Score: 0.5
Natty:
Report link

Solution you can do, with some changes,

in the #banner element

#banner {
    width: auto;
    height: 100vh;
    /* rest same */ 
}

and in #banner img && img element

#banner img,
 img {
    /* width: remove it [from media queries also] */
    /*height: remove it [from media queries also] */
    object-fit: fill; 
    /* rest same */
}

Some considerations, resizing is not a good idea, you be using object-fit: cover. But, if you are upto something else this will resize to the viewers screen, and for mobile you can further modify #banner element by using 'dvh', due to browser header issue in mobiles.

#banner {
    width: auto;
    height: 100dvh;
    /* rest same */ 
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: hope__32