Jump to content

Help making images on my homepage smaller for the phone/tablet view only.

Recommended Posts

Site URL: http://www.alinapatra.com

Hello there!

I am trying to make my photos for the mobile version smaller on my homepage. The photos are extremely zoomed in and it would look so much better if I can fix this.

I have a code already entered to change my social media icon colors and it worked like a charm. Then I pasted another code below it -- in attempts to fix the problem -- but it keeps saying there's an error on one of the lines. 

I am not a code person at all. This is like a foreign language to me so any help would be appreciated. Here is the code I copied. 

/* CSS FOR TABLET AND MOBILE */

@mobile: ~"only screen and (max-width: 640px)";

@tablet: ~"only screen and (min-width: 641px) and (max-width: 949px)";

 

/* CSS FOR TABLET */

@media @tablet {

/* Insert Code for Tablet Below This Line*/

 

/* Insert Code for Tablet Above This Line */

}

 

/* CSS FOR MOBILE */

@media @mobile {

/* Insert Code for Mobile Below This Line*/

  

/* Insert Code for Mobile Above This Line */

}

Thank you so much!!!

Link to comment
  • 1 month later...
  • Replies 3
  • Views 498
  • Created
  • Last Reply
  • 2 weeks later...
On 12/24/2020 at 1:55 AM, nfehn said:

Hi! I just searched the forum looking for the exact same thing - did you have any luck here? If so, I'd love the code you found!

Hi. If you share link to your site, we can help easier

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!)

Link to comment
  • 3 weeks later...

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.