Grow your CSS skills. Land your dream job.

moving the text inside
    • # June 13, 2013 at 9:30 am

      I have just create a header with a menu as a `

      # June 13, 2013 at 9:49 am

      Inside where? You need to be clearer in your requirements.

      # June 13, 2013 at 12:49 pm

      If you see the pen, all list-items are like separte boxes, i want to move the text to the centre of the box, margin and padding didn’t work because it changes the position of the box only i.e

    # June 13, 2013 at 12:56 pm

    insted of height in .mainnav>ul li you need to add **line-height: 50px;**

    # June 13, 2013 at 3:07 pm

    check out this [PEN](http://codepen.io/anon/pen/hcrzL “”).

    # June 13, 2013 at 7:18 pm

    check this [pen](http://codepen.io/amyth91/pen/LJycf “Pen”).. you can use padding too.

    # June 14, 2013 at 1:09 am

    both line-height and padding works

    thank you all guys

    Viewing 7 posts - 1 through 7 (of 7 total)

    You must be logged in to reply to this topic.

    *May or may not contain any actual "CSS" or "Tricks".