I have a <div> tag on my page that uses a CSS ID class to position itself and sets some text and background color attributes.
Here's my problem. If I load the page without the "runat" it loads with the correct CSS properties. However, if I add the runat="server" to the div tag the CSS properties do not get applied to the div tag?
I need to add the runat because I want to control the divs visibility from the code behind.
So basically, this loads the CSS properties....
<div id="testPop">This is my div!.</div>
And this doesn't....
<div id="testPop" runat="server">This is my div!.</div>
What am I missing? The page uses a masterpage so could that be the problem. The CSS file is called in the masterpage.