How to force elements to stay in the same row

后端 未结 2 1011
慢半拍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:35

    Remove float:left from <span> and <a>. This makes no sense. Those are already inline elements.

    0 讨论(0)
  • 2021-02-06 17:45

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

    0 讨论(0)
提交回复
热议问题