Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed CSS Layout!
You have completed CSS Layout!
Preview
Let's use float for what it’s built to do: place content to the left or right side, and have other content wrap around it.
Further reading
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
If you studied the history of CSS,
0:00
you'd find that float has
a bit of a bad reputation.
0:00
This traces back to when the iPhone
was launched in 2007, and users could,
0:05
for the first time, experience
the web in full on a mobile device.
0:11
At the time, CSS didn't offer
any properties to help develop
0:18
responsive websites that remained
legible on a variety of screen
0:22
sizes because the need wasn't there.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up