CSS: I can't set width to “auto” always appear 100%

后端 未结 7 870
太阳男子
太阳男子 2021-01-28 16:56

for some reason

the width of the div is 100% and if i set it to auto, nothing changes. tried display: block; and still nothing.

what I have in

7条回答
  •  [愿得一人]
    2021-01-28 17:21

    use display: inline-block

    and add a class

    .clear { clear:both;}

    place it in between the boxes

    so

    http://jsfiddle.net/HpMSU/1/

提交回复
热议问题