How to position?

Discussion in 'HTML & Website Design' started by milos112, Dec 10, 2014.

  1. #1
    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:
    [​IMG]

    Thank you!

    PS. I centered both the text in menu as well as in the header
     
    Solved! View solution.
    Last edited by a moderator: Dec 10, 2014
    milos112, Dec 10, 2014 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,812
    Likes Received:
    4,535
    Best Answers:
    123
    Trophy Points:
    665
    #2
    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.
     
    sarahk, Dec 10, 2014 IP
    kk5st likes this.
  3. #3
    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.
     
    LukeBro, Dec 10, 2014 IP