Making a div float left, but not “fall” if text is too long

前端 未结 3 2124
一个人的身影
一个人的身影 2021-02-07 11:04

I\'m sorry for the horrible title.

Essentially, I have a containing div which contains two divs with position: relative; and

3条回答
  •  清酒与你
    2021-02-07 11:29

    Question was a bit vague, but I think max-width is what you need - here's a sample HTML:

    
      
        
      
    
      
        
    Insert long text...
    Insert more long text...

    I hope I interpreted what you meant correctly.

提交回复
热议问题