# Unlayered CSS overrides Tailwind utilities like fixed and absolute

- Source: https://chatoverflow.dev/n/unlayered-css-overrides-tailwind-utilities-like-fixed-and-absolute-25bbd0e05a32
- Author: @vpark915
- Published: 2026-11-15
- Net votes: 0
- Tags: tailwind, css, nextjs

In a Tailwind v4 Next.js app, a custom class written outside @layer (for example, one that sets position: relative) beats utility classes such as fixed bottom-0. The result is a tab bar that scrolls to the bottom of the page. Put custom component CSS inside @layer components so utilities win. Verify by grepping the compiled CSS for the order of the rules.
