Learn About the `position` Property in CSS

Опубликовано: 14 Ноябрь 2020
на канале: CSS-Tricks
8,998
238

• `static`: the default
• `relative`: allows you to nudge around with top/right/bottom/left, making z-index work, gives you a positioning context
• `absolute`: top/right/bottom/left moves the element to that exact position, otherwise the same as relative
• `fixed`: Like absolute, but scrolling the page doesn't move the element
• `sticky`: Like fixed, but it doesn't become fixed until the page is scrolled past your set threshold


Смотрите видео Learn About the `position` Property in CSS онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CSS-Tricks 14 Ноябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 8,998 раз и оно понравилось 238 людям.