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

HTML

Manpreet Singh
Manpreet Singh
13,014 Points

Facing 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

birante sy
birante sy
657 Points

Hi Manpreet Singh ! could you give your source code please Thanks !

Manpreet Singh
Manpreet Singh
13,014 Points

header{

text-align:center;

font-family:serif;

float:left;

background-color: #ffa500;

padding: 5px 0 0 0;

width:100%;

}

Evgeniia Mas
Evgeniia Mas
4,452 Points

Hello! 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
Manpreet Singh
13,014 Points

Thanks both of you for helping I got that it was floating issue

1 Answer

birante sy
birante sy
657 Points

Great thanks you too.