I am preventing anonymous access to my web application using <deny users="?"/>. Since I want login page to be accessible to anonymous user I used the following rule
<location path="Login.aspx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
Since this rule prevented the css to be applied to the login page I used additional rule
<location path="Style.css">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
That fixed it and now css is applied to the login page. But before applying the above additional rule I checked the source of page in browser and found that there existed an entry for <link href="Style.css" rel="stylesheet" type="text/css" /> and clicking the link, the browser did take me to my css file and displayed all the styles. So I was wondering if the page has access to the `Style.css' what exactly is preventing the browser to apply the styles to different elements.
<allow users="?">prevents anybody?? I am already preventing users by using <deny users="?"> the <allow users="?"> is only used for login page