Jump to content
WebWerx

Adding A Vertical Line Between Items In Main Nav

Recommended Posts

WebWerx

I would like to add a succinct vertical divider between menu items here: http://cl.ly/image/123F1A070m3f. But I don't want a line to the left of "Home". Ahhhh...

 

I was able to add the top border using ".navigation_wrap". But am struggling with adding what I need.

 

The website is here: http://goo.gl/YXHZ7

 

Thanks for any and all help!

 

:zoro:

Share this post


Link to post
Share on other sites
WebWerx

Hi @Catrina! It's been a while.

 

I totally get what you are suggesting. When I go in Firebug, I see this: http://cl.ly/image/1r39141R3G1Q . From there I can extrapolate that I need to add the requisite code to individual menu items such as li id="menu-item-6165" . My challenge is how to define that via the DIV....

Share this post


Link to post
Share on other sites
Jenny

 

#page .main_nav ul li {

    border-right: 1px solid #F700E6;
}

 

 
^^^ targets all of the menu items at once so you don't have to do it individually :)

Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
WebWerx

Thanks Jenny.... The issue with this is that then the menu item that is last on the right will have a border on its right. Hence my desire to identify individual menu items.

 

(BTW- How are you making out? It's been a while).

 

:phew:

Share this post


Link to post
Share on other sites
catrina

For the very last menu item, you can write CSS for it that makes it so it doesn't have a right border. So for that, you'll need the li class selector for the last item and just add: border-right: 0px;


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
WebWerx

Okay - thank you both (@Catrine & @Jenny). I will muddle my way through this. You are both extremely helpful. Have a pleasant weekend!

 

L

Share this post


Link to post
Share on other sites
Jenny

You're welcome :) If you can't get it, just let us know.

 

And I've been well, thank you! Hope you have been doing well also!


Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
WebWerx

@Jenny & @ Catrina: Okay this is simple enough... Now a small tweak... I don't want the vertical line to be full-height. I want a space between the top and the bottom..... so that each menu item doesn't look like it's in a box.... http://cl.ly/image/212Q1h3G0Z2l or perhaps a light dotted line. Something very sedate. IE "border-right-style:dotted;".

 

This is fun!

 

:zoro:

Share this post


Link to post
Share on other sites
WebWerx
@Catrina: Really? Like this?:

#page .main_nav ul li {     

border-right: 1px solid #F700E6; 
padding-top: 5px;
padding-bottom: 5px;
}

Share this post


Link to post
Share on other sites
catrina

Yes, like that, but instead of adding it to the individual menu item, you can add it to the list CSS (for ul).


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
WebWerx

@Catrina: I am sorry. I don't understand what you mean.

 

Here is what I put:

 

 

#page .main_nav ul li {     
border-right: 1px dotted #b4b4b4; 
}
 
So where do I put my top and bottom padding for these elements?
 
I find CSS for NAV systems so confusing!

Share this post


Link to post
Share on other sites
James B

Hi there, i think Cat means apply the code for the padding to the below which stops at the ul class, so its one higher than the previous css and effects the padding for the entire list, so you'll only have to put it in once :-)

 

#page .main_nav ul


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
WebWerx

Hello @ James B: Unfortunately your suggestions does not have desired effect. It makes the NAV system "higher". I have done some research and I don't think what I want to do with CSS is possible. Rather, I may need to create a dotted line in Photoshop and insert it as an image. 

 

Thoughts / comments?

Share this post


Link to post
Share on other sites
batman

Hi 

Please, you can try with

 

ul.sf-menu li {border-right: 1px solid #F700E6;}

:)


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
Danny

Just adding a margin-top X and margin-bottom X to your navigation a CSS. For example,

.main-nav a {
margin: 4px 0;
border-right: 1px solid #CCC;
}

Please remember that we are not here to design your site for you, I highly recommend you use Firebug or similar tool to inspect your sites CSS.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
WebWerx

Thanks @Batman (Caped Crusader): This gives me the border I need also. But I don't want the border to be from top to bottom. Only partial.

Share this post


Link to post
Share on other sites
WebWerx

Thanks @ Danny: It doesn't work. I can get the dotted line NP using this:

 

 

#page .main_nav ul li {     
margin: 4px 0;
border-right: 1px dotted #b4b4b4;  
}
 
But the margins do not work. The border still goes from top to bottom. 
 
:startle:

Share this post


Link to post
Share on other sites
batman

Hi again, I see margin with firefox

Captura%2520de%2520pantalla%25202012-12-

Your cache?

;)


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
Danny

@Webwerx

 

The code you're using wont work, you need to target the a CSS for your menu item, use the code I gave you above as an example, add #page or #site to the beginning and it will probably work.

 

Example - http://d.pr/i/Cpxh


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
WebWerx

Ha -- You are too quick @Batman....  The issue here is that I do not want the dotted line to go from top to bottom......

Share this post


Link to post
Share on other sites
WebWerx

@Danny: I will try what you suggested. THX

Share this post


Link to post
Share on other sites
WebWerx

Hey @ Danny: I used this code:

 

 

#site .main-nav a {
margin: 12px 0;
border-right: 1px dotted #b4b4b4;
}
 
The "margin" just make my NAV higher.

Share this post


Link to post
Share on other sites
batman

Sorry WebWerx

I do not see the dotted line to go from top to bottom

Captura%2520de%2520pantalla%25202012-12-

:geek:


Life is too short to remove USB safely ...

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


  • Similar Content

    • chamois_blanc
      By chamois_blanc+
      Hello,
      Shouldn't the image PL5 component be using the srcset/picture css directives to pick the correct size for an image? or it does already and I don't know how to use it? Thank you for any advice or enlightenment.
    • russe-intensif
      By russe-intensif+
      Hi team,
      checking my site today, i'm surprised to see my MegaNav all in bottom of the pages, while it's in header.
      After getting to change it in couple of pages onto Template part (too time consuming !), i'm desperate and ask you for help :-)
      apprendre-le-russe-avec-ania.fr
      Thank you in advance !

    • Dan Haddock
      By Dan Haddock
      Plugins Active and installed: 
      Akismet Anti-Spam
      Coming Soon Page & Maintenance Mode by SeedProd
      Contact Form 7
      Cookie Law Info
      DMS Professional Tools  
      Enhanced Media Library  
      Flamingo
      Google Analytics for WordPress by MonsterInsights
      Google XML Sitemap
      Jetpack by WordPress.com
      Legull 
      Loginizer   
      MailChimp for WordPress
      PageLines Updater    
      Schema App Structured Data 
      Sucuri Security - Auditing, Malware Scanner and Hardening
      Uber reCaptcha    
      Yoast SEO
      Wordpress Version: 4.8.1
      Pagelines Version: 2.2.4
       
      Good Evening/Afternoon or Morning, 
      I am running into a problem with CSS styling not applying inside of most browsers (Safari, Firefox) when I am logged in to wordpress, and all browsers that I have tested when I am logged off and the site has been made public (Chrome, Firefox and Safari).
      As a result, I have managed to identify the probable cause. It looks as though these browsers are refusing to render my sites compiled CSS file due to it being a HTTP URL rather than HTTPS.
      I have attempted to change this URL to HTTPS in my browser, however it brings back an ERROR: File not found page - https://www.shortfilmblog.com/wp-content/uploads/pagelines/compiled-css-core-1505847507.css
      What would you suggest in this regard? Would this be resolvable from your end?
      Happy to provide any further details required.
    • Borries
      By Borries+
      I know this is not an easy problem. Maybe there is a easy solution.
      I have tryed to uses the existing solution, that I have found in the forum
      I changed the colours of my nav (simple nav) and the hover effect (a. hover).
      I really tryed to highlight the active/used link in the nav but I cant figure it out.
      I want it to be black when active.
      Any help would be appreciated. Thanks.
      http://www.marcborries.de  nav link: "Sinn & Selbst" 
    • dwpoyner
      By dwpoyner+
      Not sure exactly what is causing the issue. For some reason, why you view my site on mobile, the menu does not show up. It will pop up, but it is black. You can check it out here: http://dev.caryfbc.org. I'm also attaching a screenshot where I shrunk my browser down. Any suggestions?

×