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

stephanie harrison roberts
stephanie harrison roberts
1,713 Points

media queries not working?

hi all, can anyone see why my media queries are not working? im trying to make the logo smaller on a small screen? The logo in this code is the .custom-logo at the end!

thanks in advance :)

steph

/* Media Queries */ @media screen and (min-width: 1000px) {

.site {
    max-width: 1200px;
    margin: 54px auto;
    padding: 54px 108px;
}

.no-sidebar.page-template-full-width-page .site {
    max-width: 1153px;
}

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

.no-sidebar .site {
    max-width: 872px;
    padding: 54px 108px;
}

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

.custom-logo { max-width: 50px;

}

2 Answers

HIDAYATULLAH ARGHANDABI
HIDAYATULLAH ARGHANDABI
21,058 Points

Dear Stephanie it should work when you change the the width of the browser. make sure you brackets closed properly and the indentation. write me if you need more help

Enjoy Coding

stephanie harrison roberts
stephanie harrison roberts
1,713 Points

Hi there, thanks so much for the quick reply.......do you mean when i make the browser window bigger and smaller? I need the logo to be smaller when he screen hits 450px but nothing happens, it stays the same size as when the screen is bigger?

steph x