0

I have this img set as background to a div. But is too big for my liking. Is there a way I could resize it in css ?

.portfolio {
    width: 100%;
    height: 100vh;
    background-image: url('img/img2.jpg');
    background-position: center;
    background-size: cover;
}
HHH
  • 11
  • 3

1 Answers1

0

Surely you can do this with two methods. First is by giving background-size: auto; Second is by giving custome size like background-size: 500px 200px;

This will solve your problem. :)

Arjun
  • 1,216
  • 12
  • 22