WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Table header row: text + image on one line (2 posts)

  1. tfmwa
    Member
    Posted 2 months ago #

    PLEASE MARK AS RESOLVED - THANKS!

    We were simply trying to cram too much into the available space for the table. Even when reducing all padding to 0, it wouldn't fit on one line. Once we removed one or more columns, Tablepress would automatically display the text and image on one line.

    ---

    Hello,

    Thanks again for creating such an awesome plugin!

    I'm trying to add a small information icon with hover text to a table header row title.

    Example: *removed*

    We're using a small *.png and http://wordpress.org/plugins/responsive-mobile-friendly-tooltip/ to accomplish this. I can't get the text and image to display on one line.

    So the code in the WYSIWYG HTML tab looks like this:

    Prijs [tooltip tip="TOOLTIP TEXT"]<img alt="" src="IMAGENAME.png" />[/tooltip]

    I've been messing with the CSS on several elements for a good while, checked the FAQ and Google. I suspect this can be done by manually setting the column width for this specific column and table.

    However, I'd like to know if it's possible to get the title text and image to display on one line using 'general' css that applies to all tables and especially columns, without having to specify them for every table individually. I've been dabbling with some display:inline-block but that seems to break the table header to an extent.

    Any help or advice that you can give is greatly appreciated!

    (for anyone looking to do the same and finding that the hover text displays behind the Tablepress header, you need to add the following custom CSS in the Responsive Mobile Friendly Tooltip options:

    #tooltip {z-index:1000;}
    )

    http://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 2 months ago #

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, looks like this was an issue with too much content in the cell. Good to hear that you were already able to find a workaround!

    Best wishes,
    Tobias

    P.S.: In case you haven't, please rate TablePress here in the plugin directory. Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.