你如何在彼此之下制作三个div?

时间:2013-05-27 17:23:47

标签: css positioning styling spacing

我正在尝试用游戏扫雷创建一个网站。我已经创建了游戏本身,我只需要一些造型方面的帮助。我觉得必须有一种更简单的方法来做到这一点。

我正在尝试在页面左侧创建三个按钮(简单,中等和硬),右侧是游戏旁边的游戏。它应该看起来像这样:

Button       Gamefield
             Gamefield
Button       Gamefield
             Gamefield
Button       Gamefield

1 个答案:

答案 0 :(得分:0)

将div中的3个按钮包裹在另一个div中。并给出一些宽度并向左侧浮动。