In the HTML & CSS lesson, I ran into trouble on the Position:Fixed lesson


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/learn-html-css/lessons/layout/exercises/position-fixed?action=lesson_resume&link_content_target=interstitial_lesson

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
When I enter the code, position: fixed; I receive the error message, Did you set the position of the paragraph to fixed?
I am entering the line of code into the .header selector as instructed.

```

.header {
position: fixed;
top: 0px;
left: 0px;
position:absolute;
background-color: #466995;
border-bottom: 1px solid #466995;
overflow-y: auto;
width: 100%;
}

<do not remove the three backticks above>

#2

Hi @jonathanlind,

You forgot to delete

position:absolute;

under the left property.

The computer get confused. :slight_smile:


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.