Question regarding "positions" in CSS
Hello everyone! So my question for you today is: Are "positions" (position relative, absolute, fixed) still being used in CSS today? and Is it good practice to use them? ,
3 Replies
Yes, used them when you need them 🙂
Positions are used in every project, I don't think there is website without positions unless it's very simple and boring layout. Overlays, modals, dropdowns, "sticky" navbars (usually made with fixed or sticky position), tooltips, layers, etc. all benefit from positions.
Kevin posted a short about them only a couple of months ago https://www.youtube.com/shorts/jFcWa9kiOHQ
Kevin Powell
YouTube
CSS positioning in 60 seconds
Let's take a look at all the different values we can use when declaring a postition in CSS!