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

Change margin for image:card on mobile?

Question

Site URL: https://www.domaniquejazmindesigns.com/

Hi all! 

Is anyone able to help me come up with some coding to change the left & right margins on my image:card blocks for mobile? I know there is a slider to change this in site styles but I actually like the way it looks on desktop, just not happy with the extra spacing on mobile view. 

Screen Shot 2020-08-03 at 5.10.41 PM.png

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

Add to Home > Design > Custom CSS

@media screen and (max-width:640px) {
.homepage .design-layout-card .image-card>div {
    padding-left: 5%;
    padding-right: 5%;
}
}

 


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0
11 minutes ago, tuanphan said:

Add to Home > Design > Custom CSS


@media screen and (max-width:640px) {
.homepage .design-layout-card .image-card>div {
    padding-left: 5%;
    padding-right: 5%;
}
}

 

Thank you, this is working perfectly for the image card in the screen shot. However, there is an image card right underneath it (and on another page) and the margins don't seem to be aligning exactly the same? Any suggestions? 

Share this post


Link to post
  • 0

remove .homepage in above code


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...