Can I control the table column width on listing pages? #6155
-
DescriptionI would like to keep the date on one line. ![]() |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
The HTML table is computing the column widths based upon the widest item (your longest title and author). Adding CSS to the listing page to force the date to be wider like:
Should do it (you could also make a CSS file or add this to an existing CSS file). |
Beta Was this translation helpful? Give feedback.
-
Is there a more general solution that allows you to set the width of each of the columns? I would like to tweak the width of the first column so that the titles are easily readable. This would obviously reduce the width of the second column. Then for the third column I wouldn’t mind the styling, though a list (because they are categories) would perhaps be preferred. Any help is appreciated! |
Beta Was this translation helpful? Give feedback.
@cscheid That's a good idea. Another option might be to use non-breaking hyphens (
#8209;
) in place of ASCII hyphens whendateStyle
is"YYYY-MM-DD"
. I tested this in a listing page and the date definitely does not break across lines.