Jump to content

Change alignment of header image on mobile

Go to solution Solved by tuanphan,

Recommended Posts

My website www.littlebattersea.co.nz is now live.

On desktop, the header image is great, but on mobile I'd like to change the alignment so more coffee is visible, less arm, so essentially right aligning the image.

Can someone suggest code for this please?

Screenshot 2023-06-25 at 11.18.25 AM.png

Screenshot 2023-06-25 at 11.18.33 AM.png

Link to comment

You can add this code to Design > Custom CSS

/* Mobile Resize Banner */
@media screen and (max-width:767px) {
[data-section-id="6491424949e8281da1136513"] {
    min-height: unset !important;
    height: 30vh;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 2 weeks later...
  • Solution
13 hours ago, Charlottenz said:

That's not quite what i was looking for. I still want the height of the header to be the same, just the image aligned to the right so i can see more of the coffee.

Use this new code

/* Mobile Resize Banner */
@media screen and (max-width:767px) {
[data-section-id="6491424949e8281da1136513"] img {
    object-position: 90% 50% !important;
}
}

image.png.4a296c49fdcbc91ea5a3392fcc612f42.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

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

×
×
  • 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.