SOLVED: Cut Image Banner HTML/CSS

Hello all,

I am trying to create a button using an image banner, but I need it to resize an image, but cut off everything outside of the div.

I am not sure how to do that.

If you are not sure what I mean, check out the picture banner at the top of


You are viewing a single comment. View All

A really simple way would be to crop the image on your computer and then put it on there.


Simple, yes, but time intensive. I am sure I will have more than 5 of these, and they would take a while to crop by hand. I also need them to be resized with the webpage, so I would need 3 different cropped images each time I want to do something like this. @LordPython404