--- id: 587d78a3367417b2b2512ace title: Push Elements Left or Right with the float Property challengeType: 0 videoUrl: '' localeTitle: 使用float属性向左或向右推送元素 --- ## Description
下一个定位工具实际上不使用position ,而是设置元素的float属性。浮动元素从文档的正常流中移除,并推送到其包含的父元素的leftright 。它通常与width属性一起使用,以指定浮动元素需要多少水平空间。
## Instructions
给定的标记可以很好地用作两列布局,其中sectionaside元素彼此相邻。给#leftfloatleft#rightfloatright
## Tests
```yml tests: - text: id为left的元素的float值应为left 。 testString: 'assert($("#left").css("float") == "left", "The element with id left should have a float value of left.");' - text: id为right的元素的float值应为right 。 testString: 'assert($("#right").css("float") == "right", "The element with id right should have a float value of right.");' ```
## Challenge Seed
```html

Welcome!

Content

Good stuff

```
## Solution
```js // solution required ```