Set div to have its siblings width

后端 未结 8 1551
猫巷女王i
猫巷女王i 2020-12-05 09:34

I\'m looking for a CSS solution to the following:-

8条回答
  •  心在旅途
    2020-12-05 10:19

    Set your div to display:inline-block instead, this way your div will expand with the content inside of it.

    http://jsfiddle.net/CpKDX/

提交回复
热议问题