Help moving nav bar links to Centre?

Hi,

Wondered if I could get some help with moving the links/buttons on the nav bar so that they’re aligned in the centre?

Here’s what I need to do:

The website is: www.waltonmaslow.com

Thanks in advance guys!

Hey there,

Thanks for writing in! Try adding the following code in the Theme Options > CSS:

.masthead-inline .desktop .x-nav {
    float: none !important;
    position: relative;
    left: 50%;
    transform: translateX(-25%);
}

You can also checkout a good article related to centering elements here https://css-tricks.com/centering-css-complete-guide/

If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Hope this helps!

Thanks Nabeel, that worked perfectly!

On behalf of my colleague, you’re welcome. Cheers! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.