- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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