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 trial

HTML HTML Video and Audio (Retired) Custom Media Players Adding MediaElement.js

Why is my code breaking.

Looks like my code is breaking for some reason. I can't find why exactly. Any idea anyone?

Here's the snapshot: http://w.trhou.se/sj3cut8eef

3 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Bappy, Change

    <link rel="stylesheet" href="mejs/mediaelementplayer.min.js"/>    

To

    <link rel="stylesheet" href="mejs/mediaelementplayer.min.css"/>

It was just a 'type' error. The file is a CSS file, not a JS file. :)

I assume you are talking about the preview just being a file tree with links. I don't know why that is happening, but if you change the file names of one of your files to index.html, it works fine. You could also write a very simple index.html with links to the other two pages.

Aaron Coursolle
Aaron Coursolle
18,014 Points

Ted. What you are describing is an issue with the Workspace file, itself. If you highlight the tree, you see that the list item text anchor is set to white.