Recently, I encountered an issue with my small web project where certain CSS styles stopped being applied out of the blue.
Initially, these styles were working perfectly fine when applied through a class in HTML.
However, upon further investigation, I noticed that when the same styles were written inline, they worked without any issues. The problem only arose when trying to apply them through a class and attaching a CSS file.
My main question now is: why do these styles work when inline but not when assigned to a class and linked through a CSS file?