How do I align spans or divs horizontally?

后端 未结 10 1044
礼貌的吻别
礼貌的吻别 2020-12-04 10:33

My only problem is making them line up three-across and have equal spacing. Apparently, spans can not have width and divs (and spans with display:block) don\'t appear horizo

10条回答
  •  广开言路
    2020-12-04 11:12

    You can use divs with the float: left; attribute which will make them appear horizontally next to each other, but then you may need to use clearing on the following elements to make sure they don't overlap.

提交回复
热议问题