How do I keep a DIV from expanding to take up all available width?

前端 未结 5 711
礼貌的吻别
礼貌的吻别 2021-02-18 12:54

In the following HTML, I\'d like the frame around the image to be snug -- not to stretch out and take up all the available width in the parent container. I know there are a coup

5条回答
  •  滥情空心
    2021-02-18 13:38

    Yes display:inline-block is your friend. Also have a look at: display:-moz-inline-block and display:-moz-inline-box.

提交回复
热议问题