Skip to content
Discussion options

You must be logged in to vote

Hi @prdt3e,

thanks for the question.

But, no, definitely not! I treat this an "hack".

Using display: table for layout control is, in my view, a workaround rather than a robust solution. It switches the element into an entirely different layout model, which introduces side effects that are difficult to predict and harder to maintain, particularly in flex or grid contexts.

It also changes intrinsic sizing behavior and interaction patterns in ways that are not always obvious. While it may solve the immediate width coupling issue, it can create fragile behavior in more complex layouts or when additional styling is applied later.

The inline max-width approach is more explicit and deterministic…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by CybotTM
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #673 on February 22, 2026 07:45.