html - How to prevent automatic line break -


i've div of 200px width , text in it, how should prevent automatic line break if text gets longer 200px?

<div style="overflow:hidden; width:200px;">    long text </div> 

just use css property

<div style="overflow:hidden; width:200px; white-space:nowrap">    long text </div> 

Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

c++ - Issues with OpenGL referencing when compiling in Ubuntu terminal -

Using Angularjs $http in browser console -