2

I'm using the table function built into Redactor, and all my tables are coming out with the minimum width possible, without any padding between columns. How do I modify how Redactor builds its tables?

enter image description here

1 Answer 1

4

I'd use a Table or SuperTable field

But if you want to stick to a Redactor Rich Text field, put a wrapper <div> around the {{ entry.redactorField }} Twig markup, and use CSS to style the table ala .myRedactorWrapper th etc.

2
  • 1
    Table and Super Table are much better ways to do tables in Craft, and if you need columns to be configurable there’s Table Maker.
    – carlcs
    Commented Oct 17, 2017 at 7:46
  • Its all part of a matric field that has image, rich text, quote, etc. I guess i could make a seperate entry in the matrix just for inserting a table and use table. Ill try that!
    – kingkelly
    Commented Oct 19, 2017 at 19:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.