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

CSS

About to have a LARGE fall out with Media Queries

Seriously I want to love responsive design and KNOW I WILL HAVE to but it drives me nuts - in a very large way.

Basically Twitter Bootstrap with two separate style sheets one which controls general styling (main.css) and the other which will handle the media queries.

In my media query file css/main-responsive.css I have the following.

@media screen and (max-width: 1274px) {

sponsorArea p {

display:block;
margin-top:1%;

}

}/* 1274px media query end */

I also put in online - think the directory shows my currently level of frustration.

http://plusonetesting.co.uk/responsivemyass/

G

4 Answers

So what's the problem? The media query applies perfectly fine for me in Chrome 25.

Problem appeared to be I forgot to clear my Cache - shhhh dont tell anyone.

But I still hate responsive work - but have decided to make it my mission to become a Responsive Jedi. Different to a responsible Jedi - that is someone that just cleans their light sabre.

You might want to take a look at Bootstrap 3.

"Responsive CSS is no longer separate and all responsive features are now compiled into the core bootstrap.css file near. Separate files are no longer required, and have thus been removed."

https://github.com/twitter/bootstrap/pull/6342