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
Manpreet Singh
13,014 PointsFacing problem in fixing header
when ever I make position fixed of my header it gain the size and disturb the navigation. please tell me how to fix that
Manpreet Singh
13,014 Pointsheader{
text-align:center;
font-family:serif;
float:left;
background-color: #ffa500;
padding: 5px 0 0 0;
width:100%;
}
Evgeniia Mas
4,452 PointsHello! Could you post or give a link to HTML and css, total or at least regarding to your header and navigation (first block which is now on it's place and becomes behind it when you make header fixed? I have several solutions by my hand, but want to see which one is worth in your situation. As I understand you just make header fixed and don't take attention that it is out of usual flow therefore. Want to be sure in the core of your problem
Manpreet Singh
13,014 PointsThanks both of you for helping I got that it was floating issue
1 Answer
birante sy
657 PointsGreat thanks you too.
birante sy
657 Pointsbirante sy
657 PointsHi Manpreet Singh ! could you give your source code please Thanks !