• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How can I remove a border from 1 menu item?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How can I remove a border from 1 menu item?

This topic is: resolved

Tagged: border, css, nav

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 11 months ago by sebgates.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 6, 2014 at 4:08 am #83559
    sebgates
    Member

    Hi, I am making a site that requires spacing bars between menu items. I created this by adding a 2px solid white border to the right hand side of the menu items.

    I am trying to remove the border on the last menu item (contact) - in this case: #menu-item-12 by adding a specific rule for that id = border-right: 0px

    Nothing happens.

    Can anyone suggest a way to get rid of the border-right on the last menu item?

    http://151.252.1.90/~active/
    January 6, 2014 at 4:38 am #83560
    Peter
    Member

    I think you forgot to select the anchor

    #menu-item-12 a { border-right: 0; }

    or this works also:

    .genesis-nav-menu > .menu-item:last-child > a { border-right: 0; }

    Note: I used > here so it won't affect the sub menus, but you don't have to. :last-child isn't supported in IE8 though, if that matters. http://caniuse.com/#search=last-child

    January 6, 2014 at 4:41 am #83561
    sebgates
    Member

    Thanks Peter, that sorted it. Top man. I did do this myself a year ago but I have forgotten what I did to achieve it. I will add your code to my snippets file.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble