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

How can I remove padding around the top Image of every blog post.

Question

Can somebody please please help me with my website.

I am trying to remove the left & right padding of the images on the top of my blog.(Mobile only) I have four blogs in total on my website but I want this modification to only effect two blogs.

(https://www.thecigarbible.com/en/newsblog)

and

(https://www.thecigarbible.com/de/newsblog

 

I am using the following code to adjust other padding settings on website primarily the homepage:

Quote

@media screen and (max-width:640px) {
.sqs-layout .sqs-row .sqs-block:first-child {
   padding: 0 !important;
}
.sqs-layout .sqs-row .sqs-block:second-child {
   padding: 0 !important;
}
  .sqs-layout .sqs-row .sqs-block:third-child {
   padding: 0 !important;
}
}
@media screen and (max-width:640px) {
   .collection-type-blog article {
   padding: 25px !important;
}
}

I am facing the complication that when I change the following code, padding is added to both text and images in the blog. I only want to remove the padding on the top image and not the text.

Quote

@media screen and (max-width:640px) {
   .collection-type-blog article {
   padding: 25px !important;
}

If somebody could help or point me in the right direction that would be amazing!

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0
40 minutes ago, tuanphan said:

replace .collection-type-blog with


div#block-yui_3_17_2_1_1572267223052_45958

@thecigarbible

No I have the problem that the padding on my other blogs is complete gone on mobile

https://www.thecigarbible.com/de/zigarrenbewertungen

and 

https://www.thecigarbible.com/en/cigar-reviews

Ideally I would like the same padding rule to be applied to these blogs as well... 

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