Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialnagamani palamuthi
6,160 Pointsdid not understand how we are assigning these classes to video elements.
I was looking at the old chats... but still dont get how we are defining classes without assigning them to any html element. How are we doing it in css file?
4 Answers
Steven Parker
231,269 PointsOK, so let's take mejs-treehouse as an example:
Between time index 1:42 and 2:03 in the video, you can see the class mejs-treehouse being assigned to two of the HTML elements.
Then at 2:32 you can see that same class being defined in the CSS.
Taylor Espejo
3,939 Pointsas for mejs-controls I do believe from memory that is simply a boolean attribute attached. So its presence is default true.
^ I believe that can be seen around the same time as Steven had mentioned
nagamani palamuthi
6,160 PointsYa .: the class mejs-treehouse and mejs-controls or any other classes we are using with this CSS file
nagamani palamuthi
6,160 PointsThanks Steven and Taylor . I get how he is using the classes mentioned above but what about the rest like .mejs-time-float, mejs-time-total, mejs-time-buffering... Also in the link given in the teacher's notes , the link, mediaelement.js does not show the options tab that he opened to show us the documentation like features:
Steven Parker
231,269 PointsI may not quite understand your original question about "...defining classes without assigning them to any html element".
Can you give me specific time references into the video where the things you are puzzled about happen?
Steven Parker
231,269 PointsSteven Parker
231,269 PointsDid you have any specific class(es) you were wondering about? Any specific points in the video?