ASP.NET - Issues with CSS

I am working on a .NET website.  Below images show the code on my ASP.NET page (ASPXpAGE.JPG) and the CSS that it uses (CSS.jpg).  

The Webpage (WebPage.jpg) displays as below but when I log in the Main Menu (MainMenu.jpg) displays correctly.  

I need "Single Sign On" to display like the "Main Menu".

Any ideas how to resolve?

<table >
	<tr align="center" >
		<td>
			<asp:Label ID="lblDomainLoginMessage" Runat="server"></asp:Label>
		</td>
	</tr>
	<tr align="center" class="subTitle">
		<td>
			Single Sign On
		</td>
	</tr>
	<tr align="center">
		<td>
			<br/><br />
		</td>
	</tr>
	<tr align="center">
		<td>
			<asp:Button ID="btnDomainLogin" Runat="server" Text="Login" OnClick="btnDomainLogin_Click" ></asp:Button>
		</td>
	</tr>
</table >

Open in new window


.subTitle
{
    background-color: #7F8082;
    color: #FFFFFF;
    font-size: small;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

Open in new window

ASPXPage.jpg
CSS.jpg
WebPage.jpg
MainMenu.jpg
LVL 2
CipherISAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

guru_samiCommented:
From what I understand, you see the CSS applied after you are login but now when you are not. If that is correct then you need to explicitly allow access to your css file by adding this to your root web.config.
<location path="yourstyles.css"> 
    <system.web>
        <authorization>
        <allow users="*"/> 
        </authorization>
    </system.web>
</location>

Open in new window

Refer this article.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CipherISAuthor Commented:
Thank You!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.