Problems with centered elements

Home Forums Gillion Theme Problems with centered elements

Home Forums Gillion Theme Problems with centered elements

This topic contains 6 replies, has 2 voices, and was last updated by  Shufflehound Support 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    RESOLVED Posts
  • Hello,

    I am experiencing two problems.

     

    1. When I center an image and this is at the beginning of the post, something weird happens – a large gap appears before it (see attachment);
    2. When I try to center a YouTube video, it doesn’t get centered – it always displays with a left alignment, even though the html code says “<p style=”text-align: center;”>”.

    How can I solve these issues? Thank you a lot.

     

    Stefano

    Attachments:
    You must be logged in to view attached files.

    3. Actually a similar problem occurs when I try to center more than one image that are on the same line. Instead of getting those two or three images centered AND one next to the other, they appear vertically one under the other.

    Hi Stefano,

     

    I hope you are well today and thank you for your questions.

     

    Could you please share me the pages URLs from your site where it is displaying so that i can troubleshoot it?

     

    Best regards,
    Shufflehound team

    zelldi
    Participant

    Hello and thank you for your reply. Please check this link, where problems 1 and 2 occur.

     

     

    Solution for this topic

    You can centre align them by adding the following CSS code in the Custom CSS code option of your theme on the below path.

     

    Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code

     

    .post-content img.aligncenter {
        clear: none;
    }
    .post-content iframe {
        margin: 0 auto;
    }

    zelldi
    Participant

    Great, thank you very much!

     

    You are always welcome here 🙂

Viewing 7 posts - 1 through 7 (of 7 total)