How do I align spans or divs horizontally?

后端 未结 10 1007
礼貌的吻别
礼貌的吻别 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条回答
  •  Happy的楠姐
    2020-12-04 11:22

    I would try to give them all display: block; attribute and using float: left;.

    You can then set width and/or height as you like. You can even specify some vertical-alignment rules.

提交回复
热议问题