The Lodge is members-only web design and development videos and live help. Log In or Sign Up.
I have just create a header with a menu as a `
i want to move the text alone inside the `
is it possible ?
here is my [pen](http://codepen.io/yoyo/pen/fxcDs “”)
Inside where? You need to be clearer in your requirements.
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
insted of height in .mainnav>ul li you need to add **line-height: 50px;**
check out this [PEN](http://codepen.io/anon/pen/hcrzL “”).
check this [pen](http://codepen.io/amyth91/pen/LJycf “Pen”).. you can use padding too.
both line-height and padding works
thank you all guys
You must be logged in to reply to this topic.
Search for Stuff
Browse the Archives
Get the Newsletter
... or get the RSS feed