- 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’m not sure what you mean.
What needs to be aligned? The menu, the list items or the links?
Do you have an example of what you are trying to do?
I want to do that ul would be in the page horizontal and vertical center.
Is it the only thing on the page. Frankly without seeing what it is you are trying to do it is hard to help.
This might help though: https://css-tricks.com/centering-in-the-unknown/
Nothing super new to the concept, just thought a way to do it without `display: table;` or a pseudo element:
http://codepen.io/Merri/pen/DyuhF
Downside: can’t use `rem` anymore.
Unique feature: body element is the element that is centered in the middle, so no need for extra container element.
both thx. :)