WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Horizontal centre align image within cell (2 posts)

  1. RowleyBirkinQC
    Member
    Posted 11 months ago #

    Hi,

    I am trying to add an image to the bottom of a table in order that it can be used as a button.

    I have managed to get the image in place and working as a hyperlink but I am having trouble aligning the button centrally. This is the code I am using to display the button.

    "<img src="http://www.exampleurl.com/wp-content/uploads/2014/03/button.png" alt="button"/>"

    I have tried adding text-align:center and align:middle but neither is working.

    I realise I could create another cell and edit the css to align it centrally but I don't like the spacing when it is done this way and also am unsure which css file the code is in.

    Any help you can provide will be much appreciated.

    Regards
    Rowley

    https://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,

    thanks for your question, and sorry for the trouble.

    For images, it's usually necessary to play with the margins around the image.
    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

Reply

You must log in to post.

About this Plugin

About this Topic