Jump to content

Nav bar centering issue


pat_ads

Recommended Posts

I purchased the Integration Service from WHMCS to integrate it into my responsive Wordpress template. I'm aware that WHMCS is not "responsive", but when I view that portion of my site on any mobile browser (iPhone or iPad), the navigation bar is off center and to the right. I opened a ticket asking WHMCS to tell me how to fix this and the response was:

 

The navigation bar is controlled by the navbar and container classes within the whmcs.css and bootstrap.css files of your custom template. You can alter these as you need to change the orientation of the bar itself.

 

Unfortunately, this does not tell me what to change on these two files. Can anyone help with more specific instructions? I've attached a pic of the problem area.

 

Thanks in advance!!

IMG_0072.jpg

Edited by pat_ads
Link to comment
Share on other sites

you can change the width of the navbar to a percentage but then the problem you may have on smaller resolutions is that not all the menu items will fit on one line.

 

edit whmcs.css

 

.navbar .navbar-inner {
   margin: 0 auto;
   padding: 0 20px;
   width: 960px;
   height: 40px;
   -moz-border-radius: 6px;
   -webkit-border-radius: 6px;
   -o-border-radius: 6px;
   border-radius: 6px;
}

 

and bootstrap.css

 

.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
 width: 940px;
}

Link to comment
Share on other sites

Thanks for the help. @wwesn, I did use

width: 95%;

on both css files and it looks great on both ipad and iphone, as well as standard browsers, so thanks so much for your help.

Edited by pat_ads
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated