Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Ian Lunn
Ian Lunn
4,558 Points

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