Div breaking line even with White-Space: Nowrap

Asked

Viewed 95 times

0

Previously I wrote directly in TD the text and did not break line, but I needed it to be written in JS, but when inserting in JS happens to break line as in the image below: inserir a descrição da imagem aqui

HTML
    <th data-sortable="false" data-field="ID" data-switchable="false" data-card-visible="false" data-formatter="fe" class="acoes" style="white-space: nowrap;"></th>

JS
    $('.acoes').html('Preços | Alunos | Associar Vendedor | Desassociar Vendedor | Upload | Configuração');

Q.S.: Previously it was not passed the style="white-space: nowrap;" and it worked normally, as gave this problem added for resolution attempt.

  • 1

    Testing here there was no line break.

  • here on all screens happens the same thing, and editing directly on F12, works the way I wanted, not know what could be done

  • Put the full table and the CSS related to it in the question. This is the only way to better analyze and try to reproduce the problem. There may be something else influencing this.

  • The table is automatically generated by data coming from the BD

1 answer

0

Problem solved only by adding directly to the external CSS nowrap, by style does not send the data to the page

Browser other questions tagged

You are not signed in. Login or sign up in order to post.