Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Fixed Positioning | Item Positioning
Advanced CSS Techniques
course content

Contenido del Curso

Advanced CSS Techniques

Advanced CSS Techniques

1. Introduction
2. Item Positioning
3. Transitions
4. Animations
5. Transformations
6. Adaptive/responsive websites and apps
7. Preprocessors

bookFixed Positioning

Fixed positioning allows us to position an element relative to the viewport (the browser window) rather than relative to its parent element. It means that the element will always remain in the same position on the screen even if the user scrolls the page.

It can be helpful when we create webpage navigation that will always be available for the user or when we need to permanently show some information on the screen. That's why let's have some practice and create the support chat button, which will always be in the bottom right corner of the viewport.

html

index

css

index

js

index

copy

The chat button is always available for the user. It does not disappear on scroll. It was achieved only with the position: fixed; property.

What is the behavior of the `position: fixed` property?

What is the behavior of the position: fixed property?

Selecciona la respuesta correcta

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 6
We're sorry to hear that something went wrong. What happened?
some-alt