Jump to content

Images and Shapes different angles on mobile - HELP!

Go to solution Solved by Ziggy,

Recommended Posts

Site URL: https://algae-turquoise-ap65.squarespace.com/

I am designing a website for a client and have used code to angle images and shapes. On the homepage I have angled the shapes and images so they fit together - so it looks like a framed photo - and also have codes so when you hover over these images another image appears. 

I knew this wouldn't work on mobile view, however the angled shapes and images are completely different and angled too much on mobile. Is there a way of angling them differently on mobile? Or deleting the angle code just for the mobile version? Or to fix this so it doesn't look messy?

 

HOPE THIS MAKES SENSE!!  thanks

Screenshot 2024-09-05 at 18.47.11.png

Screenshot 2024-09-05 at 18.47.51.png

Link to comment
  • Replies 6
  • Views 213
  • Created
  • Last Reply

Top Posters In This Topic

34 minutes ago, emmaburtonblog said:

This is set to Private, can you add and share a site wide password?

How are you setting the angles?

35 minutes ago, emmaburtonblog said:

Is there a way of angling them differently on mobile? Or deleting the angle code just for the mobile version?

Yes, use media queries to have different angles for desktop and mobile.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
10 hours ago, emmaburtonblog said:

Site password is: 1John4v18

The site is still set to private.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • Solution

Looks like the angles are the same on mobile, but if you do want to have no angle on mobile use this media query:

@media only screen and (min-width:768px) {
  #blockID {transform: rotate(+15deg);}
  #blockID {transform: rotate(+15deg);}
  #blockID {transform: rotate(+15deg);}
}

Or to have different on desktop and mobile:

// desktop angles
@media only screen and (min-width:768px) {
  #blockID {transform: rotate(+15deg);}
  #blockID {transform: rotate(+15deg);}
  #blockID {transform: rotate(+15deg);}
}
// mobile angles
@media only screen and (max-width:767px) {
  #blockID {transform: rotate(+15deg);}
  #blockID {transform: rotate(+15deg);}
  #blockID {transform: rotate(+15deg);}
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.