Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I've developed a small ASP.Net Web Forms responsive website using Bootstrap. Running it on the development server works OK. But after publishing it to the hosting server, the CSS is not being rendered correctly in all instances.

The problem is with the following DIV and losing its padding
HTML
<div class="container-fluid"> 

When using Inspect Element in Google chrome, the CSS from the dev server is and it clearly states its from BootstrapCSS:
CSS
.container-fluid {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}

Doing the same on the hosted server gives the following and states its a User Agent Stylesheet.
CSS
div {
display: block;
}


Any suggestions what the problem may be ?

Cheers.

John
Posted
Comments
Kornfeld Eliyahu Peter 21-Oct-14 10:03am    
Probably your CSS file didn't loaded properly in the hosted environment - you can check it with Chrome debugger...

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900