Kpt.Khaos
Kpt.Khaos

Reputation: 693

Why my asp.net page is not showing styles I set

I have a simple web form and have the back ground set to AppWorkspace and it displays the background as white. As far as font goes it set those right butt it wont show any color? Have any idea why I have look up different things about the css not working but nothing indicates there is a problem. How can I fix this to make my color show up. I am not sure what to provide so I am providing what I have that uses color.

<form id="form1" runat="server" style="background-color:AppWorkspace">
<div style="background-color:AppWorkspace" runat="server">

These are suppose to set the colors but nothing happens. Any ideas?

Upvotes: 0

Views: 210

Answers (1)

TheCatWhisperer
TheCatWhisperer

Reputation: 981

try doing something in a style tag instead

<style type="text/css">
form{
background-color: #000;
}
</style>

Or use the style attribute in the code behind

Upvotes: 1

Related Questions