Jump to content

How to position this background-picture correctly?


Chris.G

Recommended Posts

It's just a matter of tweaking the background size and position values until it's correct.

section.locations {
  margin-top: 4rem;
  height: 500px;
  width: auto;
  background-image: url("https://github.com/ChristophGrothe/teacozy/blob/main/pics/Screenshot%202022-03-28%20at%2015-25-08%20img-locations-background.webp%20(WEBP-Grafik%201200%20%C3%97%20795%20Pixel)%20-%20Skaliert%20(70%25).png?raw=true");
  background-size: auto 695px;
  background-repeat: no-repeat;
  background-position: top center;
}

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...