• page: http://www.therealmoforcs.com/countries/
    table id: countryList_page
    Relevant Custom CSS On plugin options page:

    <!-- countryList_page table -->
    .tablepress-id-countryList_page .column-1,
    .tablepress-id-countryList_page .column-2 {
    	vertical-align: middle;
    	text-align: center;
    }

    First: I’m using a pretty old theme, and I had to add in CSS coding to allow for text-wrapping of images, so it’s probably something of that nature.

    I also tried it with ‘td’ before the bracket, but not having any luck. I just really want the text centered over the flags below — but its probably easier just to make the whole table centered. I’d like to center the table as a whole, too, but that’s probably done within the page contents.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    thanks for your question, and sorry for the trouble.

    You will want to use this “Custom CSS” code:

    /* countryList_page table  */
    .tablepress-id-countryList_page td {
      text-align: center;
    }
    .tablepress-id-countryList_page img {
        margin: 0 auto;
    }

    However, before that can work, you must change the style of commenting that you use in the CSS. You have used HTML comments (<!-- ... -->), but you must use CSS style comments (/* ... */), as the code will break otherwise.
    You might then also want to reduce the margin on those <h2> elements with this:

    .tablepress-id-countryList_page h2 {
        margin: 0;
    }

    Regards,
    Tobias

    Thread Starter The Realm of Orcs

    (@the-realm-of-orcs)

    Thanks for the help! I think the HTML comments were keeping the changes I was using from even being displayed at first, but now everything’s working like I want. =D

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[TablePress]Centering cells, numerous previous search results ineffective’ is closed to new replies.