Jump to content

Mobile layout for image block

Recommended Posts

Site URL: https://sprout-tuna-swnf.squarespace.com/

Halfway down my homepage there are 4 image cards, each with a title, displaying in two columns. However, when this switches to one column on mobile, the image takes up the full width of the screen and the title sits underneath it.

How would I be able to have the title sit next to the image in the same column? This would look much tider. Like this:

705078081_servicesscreenshothomepage.thumb.PNG.c3458c84cfa5ac253d8626ca4ae6c4b6.PNG

instead of how it actually looks on mobile:

64197052_thumbnail_Screenshot2020-03-09at17_14_02.thumb.jpg.7c1b96d996d652b0a29f1a84193e329e.jpg

 

Any help would be much appreciated!

Link to comment

Add to Home > Design > Custom CSS

@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1581330880897_19993+.row .image-block-v2 {
    display: flex;
}
div#block-yui_3_17_2_1_1581330880897_19993+.row .image-block-v2 .intrinsic {
    width: 40%;
}
div#block-yui_3_17_2_1_1581330880897_19993+.row .image-block-v2 .image-card-wrapper {
    width: 60%;
}
}

 

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
  • 11 months later...
On 2/10/2021 at 8:27 PM, 19blue said:

Hi,

I'm experiencing the same issue with this site: https://www.mgadv.no/kontakt
Any help would be much appreciated. 

Screen Shot 2021-02-10 at 2.27.06 PM.png

Add to Design > Custom CSS

/* kontakt icon text side by side */
@media screen and (max-width:767px) {
div#page-section-601c878e78a1067166d81580 .span-12>div:nth-child(n+3) figure {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
}

 

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
  • 2 months later...
On 2/14/2021 at 3:29 AM, tuanphan said:

Add to Design > Custom CSS


/* kontakt icon text side by side */
@media screen and (max-width:767px) {
div#page-section-601c878e78a1067166d81580 .span-12>div:nth-child(n+3) figure {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
}

 

Hi again @tuanphan

 

I´ve made some updates to the website and somehow the vertical text/image alignment is off. Would you know how to fix this? It was originally center aligned vertically, and not so far away from the circle.

Thank you.

1133085962_ScreenShot2021-04-22at1_18_06AM.thumb.png.d9b03c5a70103227b19b7a7cb5ffa8ca.png1259737346_ScreenShot2021-04-22at1_22_11AM.thumb.png.06b11ebad2725b37abfa383810183990.png

Link to comment
3 hours ago, 19blue said:

Hi again @tuanphan

 

I´ve made some updates to the website and somehow the vertical text/image alignment is off. Would you know how to fix this? It was originally center aligned vertically, and not so far away from the circle.

Thank you.

1133085962_ScreenShot2021-04-22at1_18_06AM.thumb.png.d9b03c5a70103227b19b7a7cb5ffa8ca.png1259737346_ScreenShot2021-04-22at1_22_11AM.thumb.png.06b11ebad2725b37abfa383810183990.png

Can you add the code & Don't edit anything?

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 months later...
On 8/7/2021 at 7:41 AM, dreyahb said:

I'm also having this issue and the codes aren't working for me...has anyone solved this? 

The website is inteliqore.squarespace.com and the password is "p@ssword". 

 

inteliqore how it works issue.PNG

Hi. You want to make them to 2 columns on mobile??

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
On 8/12/2021 at 9:36 AM, dreyahb said:

Yes! I am wanting it to look like this. 

inteliqore how it works layout.PNG

Add to Design > Custom CSS

/* Mobile icons */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1626657499507_12309+.row {
.intrinsic {
    transform: unset !important;
    margin: unset !important;
    float: left !important;
}
figcaption.image-card-wrapper {
    float: left !important;
    width: calc(~"70% - 20px");
    margin-left: 20px;
}}
}

 

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
  • 2 weeks later...
On 8/26/2021 at 12:31 AM, dreyahb said:

Hi Tuanphan, 

The code above isn't working on my site anymore. Would you be able to check it out and see what how I'm interfering with it?

 

Thank you so much!!!

Just answered your message. You can check again. If it works, you can share for other members.

Thank you!

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 months later...
On 12/21/2021 at 10:45 PM, benja said:

Hey @tuanphan
Would you mind helping me out with my website?
https://oleander-chicory-9t2h.squarespace.com/ (password is: umoweb)

I have 16 heads on the homepage and would like to have 2 heads side by side on the mobile version. Is this possible?

Hi. Add to Design > Custom CSS

/* Mobile homepage 16 heads */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1638192805985_20063~.row .span-3 {
    width: 50% !important;
    float: left !important;
}

div#block-yui_3_17_2_1_1638192805985_20063~.row .span-3:nth-child(2n+1) {
    clear: left !important;
}
}

 

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.