Lesson 5 Flashcards

1
Q

float

A

Essentially, the float property allows us to take an element, remove it from the normal flow of a page, and position it to the left or right of its parent element. All other elements on the page will then flow around the floated element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
section {
  float: left;
  margin: 0 1.5%;
  width: 63%;
}
aside {
  float: right;
  margin: 0 1.5%;
  width: 30%;
}
A

adding a margin and a width helps to position the content exactly where eyou need it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly