• Resolved robertwein

    (@robertwein)


    I’m building a blog post, that’ll be about brain injury, and I’d built a table. However, I’d wanted the table to be 30%/70% for the two columns, but they’re 50/50. This is code in the options. I know that there’s an error in there, but for the life of me I don’t know what it is! Help?!?

    .tablepress-33 tbody tr {
    width: 100%;
    }

    .tablepress-33 tbody tr td.column-1 {
    width: 30%;
    }

    .tablepress-33 tbody tr td.column-2 {
    width: 70%;
    }

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter robertwein

    (@robertwein)

    I just noticed that I didn’t put a space, between the “td” and “.column”. I put one in, but it doesn’t seem to work.

    .tablepress-33 tbody tr {
    width: 100%;
    }

    .tablepress-33 tbody tr td .column-1 {
    width: 30%;
    }

    .tablepress-33 tbody tr td .column-2 {
    width: 70%;
    }

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, your link is not working for me, as it’s a private draft link. Can you maybe publish that page temporarily so that I can see the table?

    Note that in this case, the td can be either removed or must not have the space between td and .column-... because that column CSS class “belongs” to the td element and is not a child element of it.

    Regards,
    Tobias

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    I found the problem ?? A simple typo, the -id is missing in the selector. We can also simplify it a bit. Please try again with

    .tablepress-id-33 .column-1 {
      width: 30%;
    }
    .tablepress-id-33 .column-2 {
      width: 70%;
    }

    Regards,
    Tobias

    Thread Starter robertwein

    (@robertwein)

    Holy mother-of-god, so simple (well, for you), but it was driving me bonkers – and now it’s solved — THANK YOU!!

    Thread Starter robertwein

    (@robertwein)

    Oh, another little thing, but why is the font smaller than what’s not in the table?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

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

    For the font issue, please see my reply in your other thread at https://www.ads-software.com/support/topic/smaller-text/

    Best wishes,
    Tobias

    Thread Starter robertwein

    (@robertwein)

    Thank you – AGAIN!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    always happy to help ??

    Best wishes,
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘This isn’t working, but i’m not sure why’ is closed to new replies.