O
O
OwerFan2021-05-25 11:01:49
css
OwerFan, 2021-05-25 11:01:49

How to make a fixed width table?

Hello! Can you please tell me how to make a field or table a fixed width with margins? that is, no matter what kind of text, a lot of it or a little, the width of the table will always be constant with constant indents.
What class to use?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2021-05-25
@firedragon

Width is set by the width attribute, and padding has nothing to do with it.

S
Spartak (Web-StyleStudio), 2021-05-26
@Spartak-2205

Maybe table-layout: fixed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question