Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Work with Fixed Positioning | Mastering CSS Positioning
Advanced CSS Techniques

bookChallenge: Work with Fixed Positioning

Task

Create a website navigation bar that remains fixed at the top of the webpage for users to access at all times. Steps:

  1. Apply fixed positioning to the navigation list.
  2. Choose one property for horizontal displacement (left or right).
  3. Choose one property for vertical displacement (top or bottom).
  4. Test the functionality by clicking on different links and ensuring that the page scrolls while keeping the navigation bar visible.
index.html

index.html

index.css

index.css

copy
  1. Set the top property to 0 to keep the navigation at the top of the web page.
  2. For horizontal positioning, you can use either left: 0; to align it with the viewport's left edge or right: 0; to align it with the right edge.
index.html

index.html

index.css

index.css

copy

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 7

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

Awesome!

Completion rate improved to 2.04

bookChallenge: Work with Fixed Positioning

Scorri per mostrare il menu

Task

Create a website navigation bar that remains fixed at the top of the webpage for users to access at all times. Steps:

  1. Apply fixed positioning to the navigation list.
  2. Choose one property for horizontal displacement (left or right).
  3. Choose one property for vertical displacement (top or bottom).
  4. Test the functionality by clicking on different links and ensuring that the page scrolls while keeping the navigation bar visible.
index.html

index.html

index.css

index.css

copy
  1. Set the top property to 0 to keep the navigation at the top of the web page.
  2. For horizontal positioning, you can use either left: 0; to align it with the viewport's left edge or right: 0; to align it with the right edge.
index.html

index.html

index.css

index.css

copy

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 7
some-alt