- 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.
Hey all,
Can anybody tell me where’s my mistake?
The menue should be aligned in the center
of the body.
[Your text to link here…](http://codepen.io/clipp/pen/aydCh “klick here”)
Try this:
.navigation ul{
text-align:center;
}
.navigation ul li{
display:inline-block;
}
@Paulie_D, need block too (it’s set to inline-block now)
.navigation ul {
display: block;
text-align: center;
}
Thank you!
Can you explain in short why it’s working right now?
But I see that the text-parts in the header are not aligned correctly:
[Your text to link here…](http://codepen.io/clipp/pen/aydCh “http://codepen.io/clipp/pen/aydCh”)
The menue has more space on its left side than on his right side.
Add `padding: 0;` to `.navigation ul`.
Great, that’s it.