Comments on: The Weird Parts of position: sticky; https://frontendmasters.com/blog/the-weird-parts-of-position-sticky/ Helping Your Journey to Senior Developer Thu, 13 Nov 2025 07:53:03 +0000 hourly 1 https://wordpress.org/?v=6.8.3 By: Giaho https://frontendmasters.com/blog/the-weird-parts-of-position-sticky/#comment-46764 Thu, 13 Nov 2025 07:53:03 +0000 https://frontendmasters.com/blog/?p=7640#comment-46764 I don’t think it really matters what format it’s written in, as long as the author explains everything! Good article. I should revise my broken sticky parts. 😅

]]>
By: Chris https://frontendmasters.com/blog/the-weird-parts-of-position-sticky/#comment-46713 Wed, 12 Nov 2025 19:15:52 +0000 https://frontendmasters.com/blog/?p=7640#comment-46713 Definitely a mistake to do this in Tailwind and JSX. The topic being discussed has nothing to do with those technologies, so it only serves to get in the way of understanding.

]]>
By: Tommy https://frontendmasters.com/blog/the-weird-parts-of-position-sticky/#comment-46539 Tue, 11 Nov 2025 04:57:03 +0000 https://frontendmasters.com/blog/?p=7640#comment-46539 It kinda reminds me of collapsing margins. For a newbie, it could be frustrating why this works on some designs but not others.

]]>
By: Aurailus https://frontendmasters.com/blog/the-weird-parts-of-position-sticky/#comment-46391 Sun, 09 Nov 2025 06:47:35 +0000 https://frontendmasters.com/blog/?p=7640#comment-46391 Appreciate the article, this was a great breakdown on a feature that’s messed with me more times than I’d like to admit! I’m not sure what all the complaining about JSX/Tailwind is for… The former is basically expected knowledge if you do web development at this point, and the latter is designed to be as easy to scan as possible. Thanks for the info-dump!

]]>
By: Chris Coyier https://frontendmasters.com/blog/the-weird-parts-of-position-sticky/#comment-46252 Fri, 07 Nov 2025 15:15:41 +0000 https://frontendmasters.com/blog/?p=7640#comment-46252 In reply to Nora Brown.

Yeah I do get the pushback on Tailwind. Adam called out why he did it in the article, and I figured there is an awful lot of Tailwind-heads out there so we went with it. That reason you point out is a good example of the cognitive dissonance that you get when you have to mentally switch between Tailwind and regular CSS.

]]>
By: Adam Rackis https://frontendmasters.com/blog/the-weird-parts-of-position-sticky/#comment-46251 Fri, 07 Nov 2025 15:15:02 +0000 https://frontendmasters.com/blog/?p=7640#comment-46251 In reply to Anthony.

To add on to what Chris said, you can literally paste those divs into normal html, and just change className to class and be done.

Even non-React frameworks like Vue and Solid use JSX. I urge you not to be scared of it! 🙂

]]>
By: Chris Coyier https://frontendmasters.com/blog/the-weird-parts-of-position-sticky/#comment-46250 Fri, 07 Nov 2025 15:11:43 +0000 https://frontendmasters.com/blog/?p=7640#comment-46250 In reply to Anthony.

C’mon now, they are very literally just <div>s. I think if you had to work on a project that involved code like this, and you were already familiar with basic HTML, you wouldn’t say “sorry boss, don’t know that stuff”, you’d go “oh, I get it, it’s just divs”.

I intentionally left JSX in the later examples because it felt more real-world to me. The very reason you might have position: sticky; problems is because you’re looping over some data that produces UI, and there is enough data that it has pushed some part of the UI big enough that the problem only then emerges.

]]>
By: Nora Brown https://frontendmasters.com/blog/the-weird-parts-of-position-sticky/#comment-46239 Fri, 07 Nov 2025 13:33:03 +0000 https://frontendmasters.com/blog/?p=7640#comment-46239 This is a handy breakdown of some of the sticky gotchas, but I agree with Sean. It would be more helpful and accessible to have the examples in plain HTML and CSS. self-start in Tailwind actually means align-self: flex-start; which is confusing, since there IS a CSS value self-start which is subtly different. https://v3.tailwindcss.com/docs/align-self

]]>
By: Anthony https://frontendmasters.com/blog/the-weird-parts-of-position-sticky/#comment-46224 Fri, 07 Nov 2025 09:58:26 +0000 https://frontendmasters.com/blog/?p=7640#comment-46224 The article looks really interesting but I’m not familiar with React/JSX so I had to skip it. It takes too much effort to understand a new language (even if it’s not that difficult) and the concept you’re trying to explain at the same time. Not everyone is a web dev by trade.

]]>
By: Adam Rackis https://frontendmasters.com/blog/the-weird-parts-of-position-sticky/#comment-46163 Thu, 06 Nov 2025 16:44:59 +0000 https://frontendmasters.com/blog/?p=7640#comment-46163 In reply to Sean.

It was written in JSX. It’s hard to see how JSX adds any real complexity. There’s not many web devs at this point who aren’t familiar with it.

]]>