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 Modular CSS with Sass!
You have completed Modular CSS with Sass!
Preview
In this video, we're going to write three different types of modifiers for styling image elements.
This video doesn't have any notes.
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
add to previous rules, so we shouldn't
need to undo properties.
0:00
So if we, for instance, ever need to
remove an element's padding, margins, or
0:02
borders, we probably applied them too
early.
0:06
Let's take a look at an example.
0:09
So here, we're going to write three
different types of modifiers for
0:11
the image elements in our project.
0:15
So, the first thing we're going to do is
go over to our base directory and
0:18
bring up our base.scss partial.
0:23
And here, we're going to define some
default styling for
0:25
our main image element.
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