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!
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
Owa Aquino
19,277 PointsNeed help on solving the width of the main-header.
Hi guys!
Just want to know what's wrong with my css code. I already set the main-header width to 100% of the screen. But it seems that the main-header still cut off.
TYIA.
- Owa
1 Answer

Gregor Cmiel
8,926 PointsHi Owa,
seems like the problem is, that you've a max-width in your wrapper on the 1025px and 769px breakpoints. The main-header can't be wider than your wrapper so the problem occurs:
@media (min-width: 1025px) {
..
.wrapper{
max-width: 1150px;
margin: 0 auto;
}
...
}
@media (min-width: 769px) {
...
.wrapper{
max-width: 90%;
margin: 0 auto;
}
...
you should adjust these max-widths.
Owa Aquino
19,277 PointsOwa Aquino
19,277 PointsThis is great.
Thank you Gregor!