In my child ascx file, I inserted the following block:
<style>
#HelloStyle { width: 0px !important; }
</style>
My intention was to override the styling of a navigation bar from my master page with the class: <nav class="HelloStyle">
However, it seems that this method is not working as expected. The navigation bar in the child page still retains the original class. Can anyone provide any insight into what could be causing this issue? I would prefer to find a solution using CSS rather than relying on JavaScript, as some clients may have JavaScript disabled.