Jump to content

Mobile Background Size

Recommended Posts

  • Replies 5
  • Views 655
  • Created
  • Last Reply
<style>
@media only screen and (max-width: 600px) {
  .section-background {
    background-color: black !important;
  }

  .section-background img {
    height: 50vh !important;
    margin-top: 25vh;
  }
}
</style>

Put this in the code injection for the page you want it to work on.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.