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

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -