Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Prevent Image Stacking on Mobile


coriwhat

Question

Site URL: http://www.theweepearl.com/recipes

Hi - On my blog page (www.theweepearl.com/recipes, pw: Wee5),  I have four images of cocktail drawings at the top. They are horizontally aligned side-by-side. I'd like to add some code to keep them this way on mobile, I don't want them to be one on top of the other.

Is there a way to group them? These images will be links if that matters.

Thanks,

Corinne

Link to comment
  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

6 answers to this question

Recommended Posts

  • 0

Tried this, to no avail 

 

/* Blog Top Cocktail Drawings */
@media screen and (max-width:767px) {
div#page-section-616bec01330a29221ec9bf26 .span-2 {
    width: 16.6667% !important;
    float: left !important;
}
}

Link to comment
  • 0
On 10/21/2021 at 7:21 PM, coriwhat said:

I still need help please 🤓

Add to Design > Custom CSS

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1634462872593_2377+.row .span-2 {
    width: 20% !important;
    float: left !important;
}
div#block-yui_3_17_2_1_1634462872593_2377+.row .span-2 .image-block {
    width: 80%;
    padding: 10px !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

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
  • 0

Thank you so much!!! You are a life saver Tuan. Another sort of relevant question: I want to make the homepage's gallery block either be three across, or break to mobile view. I don't like when it's 2 then 1, as shown in attached screenshot. 

(www.theweepearl.com/home, pw: Wee5)

 

Screen Shot 2021-10-29 at 2.58.24 PM.png

Link to comment
  • 0
On 10/29/2021 at 7:58 PM, coriwhat said:

Thank you so much!!! You are a life saver Tuan. Another sort of relevant question: I want to make the homepage's gallery block either be three across, or break to mobile view. I don't like when it's 2 then 1, as shown in attached screenshot. 

(www.theweepearl.com/home, pw: Wee5)

 

Screen Shot 2021-10-29 at 2.58.24 PM.png

Add to Design > Custom CSS

/* prevent stack from 768px to 1024px */
@media screen and (max-width:1024px) and (min-width:768px) {
div#block-yui_3_17_2_1_1634483957414_5201 .summary-item {
    width: 31.0345% !important;
    margin-bottom: 3.44828% !important;
    margin-right: 3.44828% !important;
    clear: none !important;
}

div#block-yui_3_17_2_1_1634483957414_5201 .summary-item:last-child {
    margin-right: 0 !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

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