Jump to content

Change alignment of header image on mobile

Go to solution Solved by tuanphan,

Recommended Posts

Posted

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

  • 2 weeks later...
Posted

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.

  • Solution
Posted
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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.