Forum Support

Shape 5
March 28, 2024, 03:06:02 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Centering Main Menu  (Read 902 times)
bluedock
Jr. Member
**
Offline Offline

Posts: 22



« on: May 23, 2018, 02:19:12 PM »

How can I center the main menu?

It is aligned to the left now but I want to center it. It is the only thing I will have in that row.

http://bluedock2.com

Thanks!
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: May 23, 2018, 06:57:37 PM »

Hello,

This is really custom coding request but I quick wrote up the code for you. Just add to your custom.css file:


Code:
#s5_menu_inner {
    float: left !important;
    left: 50% !important;
    margin: auto !important;
    position: relative !important;
    width: auto !important;}


#s5_nav li {
    float: left;
    position: relative !important;
    right: 50% !important;}
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
bluedock
Jr. Member
**
Offline Offline

Posts: 22



« Reply #2 on: May 24, 2018, 06:58:59 AM »

Thanks so much for the extra effort jonnahh!

Although when I used your code it centered it but created two rows and no matter what modifications I did it never would go back to 1 row.

However, you got my mind moving in the right direction and I found that adding a left margin to the s5_menu worked perfectly.

#s5_menu_inner {
    margin-left: 10.5% !important;
    }

This is the code I used and it works.

Thanks again!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.