Friday, February 12, 2016

Large spacing between form controls in ASP.NET MVC 5 (VB.NET) project

As I was converting a registration form from MVC 5 C# website to VB.NET MVC 5, I've noticed that in VB.NET the div elements with form-group class have different spacing in between compared with the former project. I've doubled checked and compared Site.css and my custom css files and all styles are the same.

Luckily, I found out that MVC 5 VB.NET project includes the older version of Bootstrap that is version 3.0. So, replacing the old bootstrap files in VB.NET project with bootstrap.min.css and bootstrap.css version 3.3.6 corrected the issue.

0 comments:

Post a Comment