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 trialKonrad Pilch
2,435 PointsSomething went wrong
HI,
Something went wrong. In this codepen, as you can see, im trying to clone the navigation when i scroll below 300px, im sure most of this code is correct, but im sure something is wrong too, hence it doesnt work. Pleaes help.
1 Answer
Tushar Singh
Courses Plus Student 8,692 Pointschange position to fixed(class fixed)
Tushar Singh
Courses Plus Student 8,692 PointsTushar Singh
Courses Plus Student 8,692 PointsKonrad Pilch
2,435 PointsKonrad Pilch
2,435 Pointshahaha, such a silly mistake xD hah
But now its fixed all the time tho ;/
Tushar Singh
Courses Plus Student 8,692 PointsTushar Singh
Courses Plus Student 8,692 PointsI am not sure I completely understand your problem here :O
"But now its fixed all the time tho ;/"
WHaaaaat?
What is it exactly you wanna do? Now what is happening is you have your navbar, when you scroll down it just vanishes and as soon as it hits the 300 mark, navbar appears again. So what's the problem now?(Sorry I am confused)
Konrad Pilch
2,435 PointsKonrad Pilch
2,435 PointsAh, solved it ! :D
I had to change this
Tushar Singh
Courses Plus Student 8,692 PointsTushar Singh
Courses Plus Student 8,692 PointsOOOh that!