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 Practice CSS Floats!
You have completed Practice CSS Floats!
Preview
See an overview of the web page you'll lay out using floats.
Resources
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
It's time to practice the basics of
CSS floats, a commonly used method for
0:00
laying out parts of a webpage and
wrapping content around elements.
0:00
You're going to lay out portions
of this webpage using floats.
0:03
To get started,
launch the workspace with this video.
0:06
I have already included an HTML and
CSS file for this exercise.
0:09
And one of the style sheets linked to the
HTML already includes the base styles and
0:13
some of the layout styles for the page.
0:17
Now let's walk through
what you'll need to do.
0:19
In the file floats.css,
0:22
you'll see six comments with instructions
on the CSS styles you'll need to write.
0:25
So first, you'll apply a float
to li tags inside nav and you'll
0:29
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