Hello, I am kind of new to webdesign. Trying to make my first website, and I stumbled upon a problem, which is that I do not really know how to position stuff. I would really appreciate any help! I basically wanna move the text over to middle a bit, however I realized that margin/padding doesn't work because of different browser sizes/windows. Here's a screenshot: Thank you! PS. I centered both the text in menu as well as in the header
You may need to use nested divs. If you are new to web design you should find some tutorials on responsive design and mess about with their examples before trying your own designs.
There are many ways to center divs. The easiest way is to set the container to have a left and right margin of auto: .mydiv { margin: 0 auto; } You can set the top and bottom margins anything you want.