Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #1491608

    Dear,

    I tried many ways to reduce the space around before/after image for both mobile and disktop. I edited the margins but dint work for me.

    could you please help me in this.

    Thank you.

    https://jumpshare.com/s/IhxystITLzo5gjemDCCb

    #1491621

    Hey tariqyacoub82,

    Thank you for the inquiry.

    You may need to place the before/after image in a Color Section element and set its container to full width. Please check this documentation for more info.

    https://kriesi.at/documentation/enfold/color-section/#color-section-with-100-content-width

    Best regards,
    Ismael

    #1491791

    Dear Ismael,

    Thanks for your reply.

    the solution didn’t work.

    I tried to paste this code on the style.cc file but also didn’t work.

    /* Color section container width */
    #section-container-width .container {
    width: 100% !important;
    min-width: 100%;
    padding: 0;
    margin: 0;
    }

    #1491805

    Hi,

    Could you post a link to where we can see the element in question please? Also, your screenshot link is returning a 404 page.

    Best regards,
    Rikard

    #1491808

    Hi Rikard,

    I want to make the Before/After section with full width.

    Please see the image below

    https://greensvill.com/wp-content/uploads/2025/11/Before-After.jpeg

    #1491822

    Hi,

    Thank you for the update.

    Did you try the suggestion above using the Color Section element to create a full-width container? We may need to inspect the actual page. Please create a test page and provide the URL in the private field.

    Best regards,
    Ismael

    #1491834

    Hi Ismael,

    I created a test page which is a copy from my home page.

    login details are in provate

    #1491851

    Hi,

    You can adjust the mobile container width using this CSS:

    @media only screen and (max-width: 767px) {
      .responsive #top #wrap_all .container {
        width: 95%;
        max-width: 95%;
      }
    }

    Note that this will affect all container elements on your site on mobile resolutions.

    Best regards,
    Rikard

    • This reply was modified 1 week, 5 days ago by Rikard.
    #1491871
    #1491878

    Rikard,

    I need only the Before/After section to be full width in all screens.

    #1491881

    Hi,

    Thanks for the update. Are you saying that you only want to modify the container width in sections where you have the element in question?

    Best regards,
    Rikard

    #1491882

    yes

    #1491893

    Hi,

    Please try this CSS instead:

    
    @media only screen and (max-width: 767px) {
      #top #section-container-width .container {
        width: 100%;
        max-width: 100%;
      }
    }

    Best regards,
    Rikard

    • This reply was modified 1 week, 5 days ago by Rikard.
    #1491959

    Rikard,

    It didnt work

    #1491975

    Hi,

    I’ve added the CSS for you, and it’s working. Please review your site.

    Best regards,
    Rikard

    #1492027

    Hi Rikard,

    Its working on mobile but not on disktop

    #1492030

    try:

    .responsive #top #section-container-width .container {
      width: 100% !important;
      max-width: 100% !important;
      padding: 0;
    }
    
    .responsive #top #section-container-width .avia-image-diff-container {
      margin: 0 !important;
    }
    
    .responsive #top #section-container-width .av-image-diff-wrapper,
    .responsive #top #section-container-width .av-image-diff-wrapper img {
      width: 100%;
      max-width: 100% !important;
      margin: 0
    }

    your images are 1024px width – so you had to stretch them to the container width.

    #1492032

    Thanks for your efforts guys.

    its perfect now

    #1492035

    Hi,

    Thanks for the update, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘Before/After part’ is closed to new replies.