Skip to main content

Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #276584
    bausten
    Participant

    I’m using the League Table plugin on WordPress for a features table and the settings only allow you to place images to the left or right in a cell. I need to center the images in each cell, is there something I can change in the CSS to do this?

    I understand some basics of CSS but am not skilled. I tried changing the CSS from line 120 to adding

    display: block !important;
    margin-left: auto;
    margin-right: auto;

    https://codepen.io/bausten/pen/PdeGrg

    #276585
    Paulie_D
    Moderator

    Your Codepen has no HTML so it’s hard to offer any help.

    The CSS is of little use without that.

    In general though an image can be centered by adding text-align:center to the td

    I would say though that there is an awful lot of !important being used in the CSS and that’s not a good idea.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.