• Resolved cggenc

    (@cggenc)


    Hi all,

    I am very new to wordpress so sorry in advance if this is a stupid question, but I tried to took it up elswhere but could not find the answer, and there seem te be more people with the same problem.

    The thing is, after I have made an image with a hove text and I paste the shortcut in the visual editor, it does not center.

    I tried:
    <p style=”text-align: center;”>[image-caption-hover id=”1″]</p>

    As well as:
    <div style=”margin-left: auto; margin-right: auto; width: center;”>
    [image-caption-hover id=”1″]</div>

    And both did nothing.

    Also tried to make the left and right margin 30% (with width on “auto”), and this does work but then the image is smaller in size.

    In the end I managed to get it with, it still got the image smaller but it was the best I could do:
    <div style=”margin-left: 25%;margin-right: 25%;width: 50%;”>
    [image-caption-hover id=”1″] </div>

    There must be another and better way to do it right?
    Can someone please help me? Thanks!

    https://ww.wp.xz.cn/plugins/image-caption-hover/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cggenc

    (@cggenc)

    Thank you for your help. I have send you a message through the link but after that I managed to get is right by using this (so easy…):

    <div align=”center”>
    [image-caption-hover id=”1″]
    </div>

    Plugin Author rameez_iqbal

    (@rameez_iqbal)

    cheers 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cannot center image’ is closed to new replies.