• Resolved Laubuster

    (@laubuster)


    Hey there,
    i have a problem with the custom css for my tables.

    i need to have some tables in bold and center. I use this css:
    .tablepress-id-1 tbody td {
    text-align: center;
    font-weight: bold;
    }
    I copied the funktion now really 57 times and now it dosn’t work any more and I dont find the problem. why my 58 table isnt bold and center

    Can you help me?

    https://www.ads-software.com/plugins/tablepress/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    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

    I’m having the same problem.. I’ve read the FAQs and previous support topics, but can’t seem to change the styling of the tables… I’ve copied the code to reduce the padding and change the width of the cells but it remains the same and I’m not sure why…

    Here’s the page: https://www.eyeontheprincetontigers.com/2015-16-princeton-hockey-roster/

    (I used a general site custom CSS editor to change the entire font of the table, so that’s how I got the font size down to 14, otherwise it wasn’t working in the Custom CSS plugin page)

    Otherwise I really love this plugin. Great layout… just having issues with the size because I’m trying to squish a lot of data in

    Thanks!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    in your case, changing the padding should indeed be the best approach. Due to your theme, you will however need some modified CSS code, namely, you’ll have to prepend the CSS ID selector #content before any CSS selectors, e.g. like

    #content .tablepress th,
    #content .tablepress td {
      padding: 8px;
    }

    Regards,
    Tobias

    Oh okay. Got it! Thank you so much!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    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!

    I just did ??

    Thread Starter Laubuster

    (@laubuster)

    I will be back to you when my site is online. At the moment I am still working on it.
    But I need to know how I can optimize the tables for mobil.

    I saw that the tables on mobile drives arent shown in full form. It is cut on the right side. We have two tables on each post. For example:
    https://to-europe.com/tours/rail-tours/christmas-classic-rail-circle/
    The “whats included table” is cut on my moblie drive. Is there an option to show the whole table?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks, jashvina!

    Laubuster: Sounds good. Showing the full table on a small screen is not really possible, as the content simply doesn’t fit. ?? The best idea is probably to add horizontal scrolling: https://www.ads-software.com/support/topic/responsive-tables-scroll-only?replies=6#post-5511954

    Regards,
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘custom css dosn't work any more :-(’ is closed to new replies.