Jump to content
WebWerx

Adding A Vertical Line Between Items In Main Nav

Recommended Posts

WebWerx    0
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    0
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    33
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    0
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    103
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    0
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    33
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    0
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    0
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    103
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    0
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    436
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    0
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    389
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    1,327
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    0
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    0
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    389
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    1,327
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    0
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    0
WebWerx

@Danny: I will try what you suggested. THX

Share this post


Link to post
Share on other sites
WebWerx    0
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    389
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

    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      every since Chrome introduce scroll anchoring (see chrome://flags) blog posts on my page start scroll automatically as soon as the user scrolls down a bit. It is super annoying and I don't know exactly what triggers the incompatibility with Chrome's latest feature that is supposed to improve usability.
      Since I don't know what causes it (Pagelines, or a Plugin), I would like to disable the feature using a CSS override that Google describes as follow:
      "Scroll anchoring aims to be the default mode of behavior when launched, so that users benefit from it even on legacy content. A CSS property overflow-anchor can disable scroll anchoring in part or all of a webpage (opt out), or exclude portions of the DOM from the anchor node selection algorithm. This property supports the following values when applied to an element E:
      overflow-anchor: auto (the default value) declares that the DOM subtree rooted at E is eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E. overflow-anchor: none declares that the DOM subtree rooted at E is not eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E." Do you guys happen to know how to use that property with the ROOT element so it applies to the whole page?
      Thanks
      Michael 
    • khat
      By khat+
      I think I may have installed pagelines pro incorrectly, and then used features incorrectly. I installed first platforms framework theme and then the child, thinking I could do setup for child later. I tried to set up a background image, and tried custom css feature in pagelines dashboard. I had mistakes in my css, and just thought that if I deleted the info in the css custom feature in pagelines dashboard that the new information would overwrite the old info. The background image didn't respond at all, probably because I didn't have the child directory renamed. I then tried to use the LSS plugin to create css and added more css, possibly, somewhere -sigh-. I never did change the background image and get it placed properly. I used a workaround and in nested containers I placed a background image which worked well enough, so I moved on to try to create my nav bar/ menu bar. When I go to the Menus panel, there is NO area where I can place a menu on a page. I have read and reread and re- re- reread the instructions for placing a menu. I've used the pagelines editor to place a menu, however only HOME shows up. I've been at this for many hours. I've since uninstalled all of my pagelines items and reinstalled, thinking that it would restore all my changes to default, but no, it is still all there, with all my unresolved issues. I am completely at a loss as to what to do next.
    • wyo22ski
      By wyo22ski+
      Hello,
       
      I'm basically a designer and understand a little on how to change CSS, etc., so please excuse my ignorance...  I recently upgraded to the newest platform from the DMS and my old DMS theme no longer functions.  I'm trying to replace the image slider that my Horizon Photography Theme (Nick Haskins) had created.  The Impulse image slider seemed the closest to what I need, but there are problems.
      It seems the the Impulse section for sliding images defaults to the image width, no the height.  I can change the Impulse stage height and width, but this does nothing to the internal content.  For instance, if I change the height to 200 pixels, the image remains the full width and only shows a cropped section.  I would like the ability to change the Impulse height, and have the image height fit space. 
      I've put this custom CSS in, but again, this only controls the stage height of Impulse:
      .pl-sn-impulse .pl-impulse-cell .cell-wrap, .pl-impulse-container, .owl-stage-outer {
        width: 100%;
      }
       
      Any suggestions welcome.  Thanks 
    • Objectif-Mariage
      By Objectif-Mariage+
      Hello. 
      I have just realized that CSS (Less plugin) , is not working..... I have disable all plugins (except PL CUSTOM LESS and PL5) , and ... it's not working ... 
      It's not the first time. Usually I had trouble with a plugin name Autoptimize , but it's Desactivate now , all memory have been purge, and it's still not working! :-/ So it's not from this plugin. 
      NB : When I am logged on my website, if i go on the black wordpress dashboard bar, go on the PL icon, clic on </> LESS/CSS => then the page suddenly apply the CSS .... But As soon that i reload the page, nothing. I think the problem is that the plugin LESS/CSS does not load properly (if I can say that with my simples words).
      I order to keep the site "good looking" I have temporally copy/paste all my LESS code in a plugin : Script n Styles that apply the LESS/CSS code... but it's not a solution for long time.
      Can someone help me ? Did I do something wrong ? Is it an update ? 
       
      my website : https://www.wedding-photography-minneapolis.com
    • bnapoli
      By bnapoli+
      http://731.34b.myftpupload.com/ this website is using the NavPro navigation in Platform 5. It has a lot of menu items, so it breaks to two lines when the window is sized down. What is the media query to make the navigation either a) switch to "mobile mode" at a higher width, or b ) expand the nav into two lines. Thanks
×