Guest Posted November 10, 2019 Share Posted November 10, 2019 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! Link to comment
tuanphan Posted November 10, 2019 Share Posted November 10, 2019 replace .collection-type-blog with div#block-yui_3_17_2_1_1572267223052_45958 @thecigarbible 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
Guest Posted November 10, 2019 Share Posted November 10, 2019 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... Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.