B
B
Boris the Animal2019-10-27 01:58:48
css
Boris the Animal, 2019-10-27 01:58:48

Bootstrap. How to pin navbar on top and align content to center?

I spent a lot of time and did not understand how to do this, because I am new to the web. I need the content to be center aligned as it will have some height (not hardcoded, will depend on the content). If the user reduces the height of the window, then the content will also be centered until it hits the navbar and a scroll bar appears near the window.
Here is what I made.
5db4cf97de83c892851576.png
5db4cf9f3780f898790150.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2019-10-27
@profesor08

Learn the basics.
https://www.w3schools.com/css/css3_flexbox.asp
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
https://medium.com/@stasonmars/%D0 %B2%D0%B5%CC%88%...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question