Jump to content

How to left-align media and text within a gallery grid

Recommended Posts

  • Replies 4
  • Views 369
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

15 hours ago, Craig456 said:

That worked for desktop views but not mobile or tablet. Any idea how I can have it aligned on all devices?

Try new code

.user-items-list-item-container[data-section-id="630d48fe448fb4222289e3ab"] {
@media screen and (min-width:992px) {
 img {
    margin-left: 2vw;
}
}
/* Tablet */
@media screen and (max-width:991px) {
img {
    margin-left: 3vw;
}
}
/* mobile */
@media screen and (max-width:767px) {
img {
    margin-left: 4vw;
}
}
}

You can adjust these values

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

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.