I work on asp.net MVC layout page . I need to make page layout layout from left side of page and right side of page are gray .
but I don't know how to do that using html and CSS or bootstrap .
exactly what I need is to how to assign left side and right side with gray as image
sample I need to make it as below :
layout page as below :
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
@Scripts.Render("~/bundles/jquery")
Employee Self Service
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)
image i desired to get it as below :

ddd
Naimish MakwanaPosted Oct 10, 2023, 4:16 AM
To create a layout where the left and right sides of the page are gray, you can modify your existing code by adding CSS styles for the left and right sides. You can use CSS pseudo-elements
::beforeand::afterto create the gray backgrounds for the left and right sides. Here's an updated version of your HTML with the necessary CSS changes:Thanks