Hi @Polachan Paily ,
In the Index and Projectdetails page, please check whether they are using the same Layout page (_Layout.cshtml).
Since you are using the fixed-top class to fix the top, I assume you are using Bootstrap, if the is the case, please make sure the related CSS reference load success. And when using Bootstrap fixed-top class to fix the header, by default, the header will use position:fixed and top:0. Note that the fixed header will overlay your other content. To fix this, add a margin-top (to the content) that is equal or larger than the height of your header. If you check the official document and sample, you can see it also set the content's margin-top css style, like this sample.
Besides, for the menu rows, it should be at the header or the footer, so based on your description, I create a Layout page as below:
Custom Layout: _MyLayout.cshtml (you can view the whole html code and css style from this link):
<head>
<meta name="viewport" conte!importantimportantmportantt="width=device-width" />
@* the css reference *@
</head>
<body data-spy="scroll" data-target="#main-nav" id="home">
<header id="myheader">
<div class="fixed-top">
<a asp-controller="Home" asp-action="Projectdetails" asp-route-itemId= 1 class="card-link ">Read More</a>
</div>
</header>
<div class="body-container">
@RenderBody()
</div>
</body>
<footer class="myfooter">
<div>Footer</div>
</footer>
And add the following CSS style: set the content's margin-top CSS style
Then, in the Index view or Projectdetails view, you should use the following code to use the custom layout page(_MyLayout.cshtml)
@{
ViewData["Title"] = "Index3";
Layout = "~/Views/Shared/_MyLayout.cshtml";
}
The result is like this:
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion