• Resolved positiverosa

    (@positiverosa)


    Hi there,

    I am having trouble aligning (centering vertically and horizontally) my images within each row and column. I’ve search through past posts and tried a number of CSS options you offered to other users, but none seem to work. I’ve left them all in just in case… is something overriding something by chance?

    .tablepress-id-2 thead th,
    .tablepress-id-2 tbody td {
    text-align: center;
    vertical-align: middle;
    }

    .tablepress-id-2 img {
    vertical-align: middle;
    }

    .tablepress-id-2 img {
    display: block;
    margin: 0 auto;
    }

    .tablepress-id-2 tbody td {
    vertical-align: middle;
    line-height: normal;
    }

    Thanks,
    Rosa

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter positiverosa

    (@positiverosa)

    I guess I should clarify that my images are horizontally centered using a class tag, it’s the just the vertically center alignment that is still eluding me.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I’m not sure why, but it seems that your theme is not loading the CSS files that TablePress needs. Does your theme’s “header.php” file contain a call to the wp_head(); function right before the </head> HTML tag?

    Regards,
    Tobias

    Thread Starter positiverosa

    (@positiverosa)

    Hi Tobias,

    Nope, doesn’t look like that function is in there. I have an ask out to a colleague in another department who is familiar with our site for a second opinion… but I’d love to hear any other ideas you have. ??

    Best,
    Rosa

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Rosa,

    well, you will have to add the function call there, otherwise the TablePress CSS (among many other things from other plugins, now and in the future) will not be loaded.
    (This is basically one of the required functions that a WordPress theme must call.)

    Regards,
    Tobias

    Thread Starter positiverosa

    (@positiverosa)

    Hi Tobias,

    I just wanted to let you know that we’re working to add that call into our site. It’s still not functioning properly, but I think we’re just going to leave it as is for now.

    Thanks,
    Rosa

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Rosa,

    ok, thanks for the update!

    Best wishes,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Image alignment – center’ is closed to new replies.