• Resolved chemalielias

    (@chemalielias)


    Hello,

    I am building this site with the help of the Oshine template and Tatsu design tool.
    Everything is going well, but i am facing an issue which i cannot solve. The blog post has paddings on the left and right, making it really difficult to read on mobile.
    Please check the link provided on your mobiles so you can understand what i truly mean

    How can i remove the padding?

    Thanks!!!

    • This topic was modified 6 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anonymous User 15030067

    (@anonymized-15030067)

    Hello,

    To remove/edit the padding you can add this to your custom CSS:

    @media (max-width: 768px) {
      .style3-blog .article-details {
        padding: 30px 5px;
      }
    }

    Let me know if that is what you are looking for. You can adjust “5px” to your preferred padding size.

    Cheers,
    ClicksFix

    Thread Starter chemalielias

    (@chemalielias)

    Thanks @clicksfix! it works perfectly

    Anonymous User 15030067

    (@anonymized-15030067)

    You’re welcome. I double checked your end result and am happy to see you customized it to your preferred style, but I would recommend a slight change for correctness. Use the following snippet:

    @media (max-width: 1330px) {
      .style3-blog .article-details {
          padding: 0;
      }
    }

    instead of…

    @media (max-width: 1330px) {
      .style3-blog .article-details {
          padding: 0px 0px;
      }
    }

    If you ever have a 0 unit there is no need for a unit identifier (e.g. “px”). Also, if you have identical values for all four sides (top, right, bottom, and left) you only need to post it once as it will apply to all of them.

    Check out this helpful article to learn more: https://css-tricks.com/almanac/properties/p/padding/

    Cheers,
    ClicksFix

    Thread Starter chemalielias

    (@chemalielias)

    Thanks @clicksfix! You’ve been more than helpful. I posted a new issue i am having. The images are being cropped in the posts between desktop and mobile. Did i do anything wrong and can it be fixed?

    Thanks a lot again!

    Anonymous User 15030067

    (@anonymized-15030067)

    You’re welcome. It appears your other question has been solved by another member. Glad we got this one solved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove padding from blog posts – Mobile’ is closed to new replies.