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 trialElwin de Witte
1,357 PointsMedia queries don't work like I wish
Hi everyone,
I'm building a website (insider.harwindesigners.nl/dekruidendokter) and I added some media queries. The website responds just fine in the browser, but when I view the website on my phone (WP8.1 - IE11) it doesn't. Can someone spot what I'm doing wrong? Is it because I'm not using em's?
Thanks for the help!
Tayfun Kayahan
Courses Plus Student 1,870 PointsYou could give it a static width like; width:125px !important; !important means that nothing will override that rule.
Elwin de Witte
1,357 PointsThanks! It kinda worked, but I can figure out the rest. Thanks for your help!
1 Answer
Tayfun Kayahan
Courses Plus Student 1,870 PointsTry to use this viewport;
<meta name="viewport" content="width=device-width, initial-scale=1">
Elwin de Witte
1,357 PointsElwin de Witte
1,357 PointsThanks for the help! It works! But I still have a problem... I know it is a problem with the icons from Google, but I don't know how to fix it. The icons appear to grow causing the website to get wide again. Do you know how to fix this? This is where the problem is:
<div class="arrow_drop_down_circle"> <a href="#content"><i class="material-icons">arrow_drop_down_circle</i></a> </div>
Live on: http://insider.harwindesigners.nl/dekruidendokter/2.0/geneeskunde.html