Jump to content
JaffaDave

Centre Text in NavBar

Recommended Posts

JaffaDave

Any ideas how to center the text in a NavBar?

 

Tried this but it didn't work?

.navbar.pl-color-base {
background: transparent;
color: #FFF;
text-align: center;
}

Share this post


Link to post
Share on other sites
Danny

Hi,

Try the following:

.navbar .navline {
float: none;
text-align: center;
}
.navbar .navline > li {
display: inline-block;
float: none;
}

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
JaffaDave
Thanks Danny, I can now see where I was going wrong. Much appreciated.

Share this post


Link to post
Share on other sites
Danny
No problem :D I'll make a note and add this info to the docs.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×