Jump to content
Sign in to follow this  
gayatriom

Move Single Navbar Menu Item to Right

Recommended Posts

gayatriom    0
gayatriom

Hi. I'd like to move a single nav bar item to the right. 

 

this is what I have:

 

li#menu-item-114{float:right;font-size:18px;color: #225e20;
font-weight:bolder;}
li#menu-item-114 a {float:right}
.navbar .navline li#menu-item-114 a {float: right;}
.navbar .navline li#menu-item-114  {float: right !important;}
 
However, the above isn't working. Any thoughts?
I just want one menu item on the navbar to float right. 
I don't want to use margin as it will mess up in responsive mode. 
 
 

Share this post


Link to post
Share on other sites
batman    389
batman

Hi gayatriom

 

Can you provide a link to your website please.

:)


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
batman    389
batman

Sorry gayatriom, i don´t find the way.

:(

Please wait for a Moderation Team´s reply


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there,

 

Looking at those three items in the top right, each container is flush next to each other. Its the padding inside each tab which is making it look like they are separate. Even if you align the text right, it won't show a change inside the tab as the padding is holding that text in the first button in place. You'd need to remove the right padding inside the first tab to get it to move over. That won't affect the responsive side of things as it will stay inside the container, even though the padding is removed.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
gayatriom    0
gayatriom

Hey James. That's not what I mean. 

I want only one nav button to be on the right side of the menu. 

Does this make sense. 

I want to separate it from the rest of the menu, not text align within the menu item. 

Basically it's a phone number so want it on the right: ) 

Share this post


Link to post
Share on other sites
gayatriom    0
gayatriom

oh wow. got the answer. 

I added this to my custom css:

 

.navbar .navline{width:100%;}
 
and this is what I already had to make that one item float right:
li#menu-item-114{float:right;font-size:18px;color: #225e20;
font-weight:bolder;}
li#menu-item-114 a {float:right}
.navbar .navline li#menu-item-114 a {float: right;}
.navbar .navline li#menu-item-114  {float: right !important;}
 
Yay! Let's close this! 

Share this post


Link to post
Share on other sites
James B    436
James B

Hey there, glad you got it sorted. Thanks for posting the answer.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

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

Sign in to follow this  

  • Similar Content

    • Grant Turck
      By Grant Turck+
      Navbar Broken on All Devices When Not Logged Into Wordpress. See screenshots attached from mobile. What is causing this issue and how do I fix? Site is venicepride [dot] org.


    • PierreFF
      By PierreFF+
      Hello, 
      I have an issue with NavPro on mobile when the link of the menue is on the same page. 
      Here is my website: http://foundersofthefuture.co
      The isssue comes from the fact that in my menue most of the items send somewhere else on the same page using anchor link (eg. #container_u788888). 
      This works well on desktop but on mobile, nothing happens when clicking on the link. One of the link of the menue of the homepage "France" sends to another page of the website and this one works well even on mobile. 
      I am using the Pagelines framework theme and also used a wordpress plugin (jQuery Smooth Scroll) for smooth scrolling . 
      Thanks in advance for your help and let me know if I need to provide more information. 
      Best,
      Pierre
    • tristanrodgers
      By tristanrodgers+
      Hi there!
      I'd love to have some social media buttons in my navbar like my online-shop has!
      http://mc1r-magazine.com/
      Can someone explain me how to create them? I tried a lot but don't know how to realize them...
      Greetings from Germany,
      Tristan
    • jeomiland
      By jeomiland+
      Hi guys. Just now trying out Platform 5. I like the reletive simplcity of the new interface but there are things I'm used to in DMS that I'm not seeing yet in 5. Is there a good manual, documentation, video series about some of the basics?
      In particular, I've got a simple navigation menu, created the standard way in WP menus section with several top level parents, then 3-4 children menu items below a couple parent items. Have them moved to the right to create the standard parent-child relationship but all I see on the page is the parent level items - no dropdown!. So I changed themes from Platform5 to the standard 2015 default theme and now I see absolutely no menu at top, except for the mobile (hamburger?) icon.
      In DMS, one had Navi and Navbar, etc sections and each would work differently and give different results. How do you work the menu system in 5? And how get different results ?
      thanks
    • nizami
      By nizami+
      I have a problem at http://kambo.world. Using navbar for the main site navigation. It works fine in normal/desktop mode [first screenshot], using the WP Menu I have specified. But in hamburger mode it seems to do its own thing, picking a few pages at random [second screenshot] A fix for this greatly appreciated! 
       


×