+ 1
how can i align a navbar to display center align with css?
2 odpowiedzi
+ 2
@Calvin answer is right if you apply its css rule to your navbar container and your navbar if of inline type (not block), or apply it to the navbar element to center its inilined content...
You can change the behaviour of a block level element by changing its 'display' css property to 'inline' or 'inline-block'...
Other ways for centering are available: provide your code (or better a link to your code playground or elsewhere online IDE) to get accurate answer best efficient related to your code context ^^
0
text-align:center;