Hello,
I would like to create a table with fixed width for cells (ex: 500px).
However, the cells widen over the entire width of the (responsive) page, which I do not want.
I tried to replace Width with Max-Width, but that doesn't change anything.
How to do it?
You need to be logged in to post in the forum - Log In
An active JCE Pro Subscription is required to post in the forum - Buy a Subscription
Support is currently Offline
09:00 - 17:00 Europe/London (BST)
Please create a new Ticket and we will get back to you as soon as we can.
#117334 Fixed width of a cell
This is a public ticket
Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Latest post by dupinsan on Tuesday, 16 September 2025 17:09 BST
Monday, 15 September 2025 13:26 BST
Monday, 15 September 2025 19:44 BST
However, the cells widen over the entire width of the (responsive) page, which I do not want.
Please post a link to an example on your site.
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Tuesday, 16 September 2025 13:31 BST
Here is the link (this is a test site) :
https://www.tests.fredericdupin.fr/carte-ufpmtc
I would like each column to measure only 240 px, and not 50% of the width of the page because I want to do like a card
Tuesday, 16 September 2025 13:37 BST
In yout template stylesheet - templates/test-1/css/template.css the following css rule is causing the issue:
/* table default style */
table {
width: 100%;
margin-bottom: 18px;
}
Override this in the user.css (or custom.css) file with the following:
/* table default style */
table {
max-width: 100%;
} Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Please wait
Your post is being submitted…
