position
, but sets the float
property of an element. Floating elements are removed from the normal flow of a document and pushed to either the left
or right
of their containing parent element. It's commonly used with the width
property to specify how much horizontal space the floated element requires.
section
and aside
elements next to each other. Give the #left
item a float
of left
and the #right
item a float
of right
.
left
should have a float
value of left
.
testString: 'assert($("#left").css("float") == "left", "The element with id left
should have a float
value of left
.");'
- text: The element with id right
should have a float
value of right
.
testString: 'assert($("#right").css("float") == "right", "The element with id right
should have a float
value of right
.");'
```
Good stuff