Level 73
This sounds like a caching issue, and a bad practice rolled into one.
You should use the cascade to build a single CSS file, that handles the styles for all pages.
Or use tailwind to style your site.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
so i am doing css for each page.. so if i am on homepage and i do
@pushOnce('styles')
@vite([
'resources/css/homepage.css',
])
@endpushOnce
and from homepage if i click on a link to another page (say posts). i can see css from homepage overrides posts.css.. does that make sense? (eg if i style button in a different way in homepage vs posts.. if i navigate to posts - the button styled will be that of homepage and not what i define in posts.css)
Please or to participate in this conversation.