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

media query problem in Chrome // the right CSS appears only on reload not on dragging the browserwindow.

I have a problem - only in Chrome.

While dragging the window not all style declarations appear, but when I reload the page, everything works fine.

The problem only appears in the head of the site (logo, menu, phone number and icons). The media queries for the content and the footer are working fine.

These are the media queries for the head - I can't find the bug - maybe someone can help me?

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

#hauptnavigation,
#subnavigation {
    display:none;
}

.mmenu-button {
    display:block;
}

#header {
    padding-right:0;
}

#header-logo {
    display:block;
    width:100%;
    max-width:100%;
    padding-right:35px;
}

#header-content {
    display:block;
    padding:0 35px 0 0;
    text-align:left;
    margin-top:20px;
}


#header-content .ce_gallery,
#header-content .ce_text {
    margin-left:0;
}

#header-content .ce_gallery {
    display:block;
    text-align:center;
}

#header-content .ce_text {
    margin-right:15px;
}

#header-content ul li {
    margin:0 3px;
    width:25px;
}

}

@media screen and (max-width: 455px) { #header-content .ce_text { font-size: 2.5em; }

.mmenu-button {
    bottom: 17px;
}

}