Languages

How to create table with same width / size of columns in html and css?

4 points
Asked by:
Creg
9600

I try to create table that has same width of each column (I am looking for CSS solution) - even content is too big, beacuse will be cut and replaced with dots (...) with styles.

This is my table:

I know there is posible to set fixed width or with percents, but width of table and number of colums can be different.

Code:

1 answer
3 points
Answered by:
Root-ssh
178290

table-layout: fixed; style property for table element solvers yours problem.

Example:

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join