Click here to Skip to main content
15,914,209 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I Put a picture at top of page in mvc project.
But there is a problem.
If I add below command, the first text line of page would be hide under menu.
Posted
Updated 1-Apr-20 8:19am

1 solution

Based on the class name, I'm assuming you're using Bootstrap 3:
Body padding required
The fixed navbar will overlay your other content, unless you add padding to the top of the <body>. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.
CSS
body { padding-top: 70px; }
Make sure to include this after the core Bootstrap CSS.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900