Fixing span

I have this table1 inside the span tag (span inside the td tag)

the problem is that the data of the row of table 1 appears outside td... the data should be displayed within the borders of the td.right tag ? coz span is contained in the td tag ... how can I make sure the range width remains fixed .. for example, it should not display material outside the tag td, which is its container

Firebug shows table1 width as 100%

[change]

ok I added display:block;the span first..didnt work to the tag ... when I added the same thing to the Table tag, the columns of the table decreased .. and the spaces between the reduced columns and row data are no longer displayed outside the td area

Now I want to ask what if I install Table{display:block;}in the css file .. how would this affect other tables? I don’t want other tables to be screwed up ... I just want this to be fixed .. In addition, the table is created at runtime using Telerik RadEditor, so it will display: the width of the blocking table of the block and not skip the data stream of its rows outside td areas

+3
source share
2 answers

<span>are inline elements, such as <a>and <img>, therefore, they cannot accept rules such as width :, height: and others.

To allow <span>these rules to be accepted, add display: block;CSS to your Span.

This will allow him to accept the width rule and populate your TD.

<span> <div>.

, , :)

+12

. ? , , . , : , . , , , .

+3

Source: https://habr.com/ru/post/1773579/