HTML+CSS: How to force div contents to stay in one line?

后端 未结 10 1993
小蘑菇
小蘑菇 2020-11-30 17:52

I have a long text inside a div with defined width:

HTML:

Stack Overflow is the BEST !!!

CSS:



        
10条回答
  •  囚心锁ツ
    2020-11-30 18:08

    I jumped here looking for the very same thing, but none worked for me.

    There are instances where regardless what you do, and depending on the system (Oracle Designer: Oracle 11g - PL/SQL), divs will always go to the next line, in which case you should use the span tag instead.

    This worked wonders for me.

    
        
     
    Just Your Text || 
    
    

提交回复
热议问题