I started a new project with Asp.Net MVC and wondered how to remove/lower this margin. I added 2 pictures in order to see it.
I am pretty new to Asp.Net. Does somebody know how to lower the space?
I started a new project with Asp.Net MVC and wondered how to remove/lower this margin. I added 2 pictures in order to see it.
I am pretty new to Asp.Net. Does somebody know how to lower the space?
The Visual Studio ASP.NET default project template used Bootstrap. Override the width or remove the container class from your body-content.
Bootstrap use this trick to center the element https://stackoverflow.com/a/114549/451668
.container {
/* first set a width that is smaller then the view */
width: /* ...px */;
}
.container {
/* and then set the left and right margin to auto to dynamically calc the same space left and right from the container */
margin-right: auto;
margin-left: auto;
}
Future reading: http://getbootstrap.com/css/#overview-container