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 trialAbdullah Etti
Courses Plus Student 370 PointsMedia Query in wordpress
I have a media query within <style> tags beneath the rest of my code on the wordpress wp-admin edit page which isn't working, is there a reason why a media query wouldn't work on the wordpress edit page or inside <style> tags? example " <style>
Container{
background-color: #444444; } @media screen(min-width:800px) {
Container{
background-color: #000000; }
} </style> "
2 Answers
Jacob Mishkin
23,118 PointsA couple of things, a good rule to follow is styles should go in its own .css file. There could be several reasons, but it looks like you forgot the and in the media query statement. Also I'm not sure its its from the copy and paste of the code but I don't see a class or id selector in your example. ie .container or #container.
Abdullah Etti
Courses Plus Student 370 Points@Jacobmishkin Not sure what the problem was, i started over and it worked this time, probably missing a ":" or something somewhere in the code, the code i posted on here was just a example i was asking if it was possible to use media querys in the TinyMCE editor, and it appears it is possible.