I have written some code for a vertical navbar locked to the left-side of my page, but when I try to insert my main title, it puts it in the navbar, rather than the Main content of the webpage, How do I prevent this?
When I put an h1 tag in for my page header, I thought it would put it to the side in the white space, but it shoved it in my navbar as text.
2
Answers
Update your css part:
Add .content-area:
in HTML please add:
Here will be your output
The updated code seems correct. Define the width of the sidebar and give same padding from left to the content div