Freelance Project Requests Software Development in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net


With the standard Asp.Net View output, the content of the web page is always only in the middle.

Asp.Net Core Net5 MVC



The cause is the div class=container




Modification _Layout.cshtml

In the Views/Shared/_Layout.cshtml  file, change  the CSS class from  container  to  container-fluid

Container is a bootstrap class.


<body >


        <nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3" >

            <div class="container-fluid" >

                @*--< Logo / Suche / Login >--*@

                @*-< Logo >-*@

                <a class="navbar-brand" asp-controller="articles" asp-action="Index">CodeDocu</a>

                @*-</ Logo >-*@


   <div class="container-fluid">

        <main role="main" class="pb-3">





    <footer class="border-top footer text-muted">

        <div class="container">

            &copy; CodeDocu Asp Core






HTML content  page maximum width

After that, the web page should be extended to the maximum width of the screen as here




Contact for Jobs, Project Requests: