How to force elements to stay in the same row

后端 未结 2 1013
慢半拍i
慢半拍i 2021-02-06 17:10

Hi I have a following css :

div.container {
 height:20px;
 overflow: hidden;
 margin: 15px 0px;
 padding:5px 10px 5px 10px;
 white-space: nowrap;  
}

div.conten         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-06 17:45

    Remove the floats and add div.content { white-space: nowrap; } and see if that solves your problem.

提交回复
热议问题