I have encountered a very strange issue.
As I was reconstruction my login page using divs instead of a table, I obviously added an id to each div to call it from css.
Here's some HTML CODE as an example:
<div id="divLogin">
<div id="divLblLogin"><asp:Label ID="lblLogin" runat="server">LOGIN</asp:Label>
</div>
</div>
and some CSS CODE:
#divLogin
{
margin-top:10px;
margin-bottom: 0px;
margin-left: 28%;
margin-right: 28%;
height: 300px;
border: 2px solid black;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
font-family: Good Times;
font-size: xx-large;
}
#divLblLogin
{
margin-top: 10px;
margin-left: 25px;
}
The thing is that when I run the website from visual studio (local host) it appears to be normal and according to what I have defined (graphically).
But when I publish the website, and run it on the web, it shows only the controls without all the stylings (as if there is no css code at all)
So I decided to write all the css inside the div itself as:
<div
style="margin-top:10px; margin-bottom: 0px; margin-left: 28%; margin-right: 28%; height: 300px; border: 2px solid black;
border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
font-family: Good Times; font-size: xx-large;"
>
<div style="margin-top: 10px; margin-left: 25px;"><asp:Label ID="lblLogin" runat="server">LOGIN</asp:Label>
</div>
</div>
and that settled it, but I don't like this solution since its almost unreadable.
This is war, and I must win this thing whatever it is, I.e. How to make the css work on the web without defining the style inside the div itself???
Help will be much appreciated!
EDIT:
Here is my MasterPage having the css references and the files & foldes hierarchy in the solution explorer

.divLogin {- as the hash notation is for selecting by ID..idand not aclass. Posted wrong code accidentally. Updated!<div id="SomeDivID">and#SomeDivID { // some css code }