Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to make a td element fit content? - Kevin Powell - Community
KP-C
Kevin Powell - Community
โข
10mo ago
โข
12 replies
noob
How to make a td element fit content?
Hi guys
, I have a table with 2 columns
, the first column I want the width fit content
, and the second one take the rest width
. How can I archive this
?
<
table
>
<
tr
>
<
td
>Fit content</
td
>
<
td
>Full width/td>
</
tr
>
</
table
>
<
table
>
<
tr
>
<
td
>Fit content</
td
>
<
td
>Full width/td>
</
tr
>
</
table
>
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time ๐.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Is it possible to make input element fit-content with css?
KP-C
Kevin Powell - Community / help
11mo ago
How to make right element height auto-resize with the parent element?
KP-C
Kevin Powell - Community / help
2mo ago
how to add a max width for td and th?
KP-C
Kevin Powell - Community / help
7mo ago
Animated details element using ::details-content
KP-C
Kevin Powell - Community / help
12mo ago