• 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

Bottom border that spans the width of menu item text in Genesis Sample Theme?

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 › Bottom border that spans the width of menu item text in Genesis Sample Theme?

This topic is: not resolved

Tagged: border-bottom, genesis sample theme, menu

  • This topic has 4 replies, 2 voices, and was last updated 10 years, 5 months ago by undercurrent.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 30, 2015 at 4:32 pm #175237
    undercurrent
    Member

    Hello,

    I have the Genesis Sample Theme, and I'm trying to add a bottom border that spans the width of text of each menu item when hovered. I initially thought to use text-decoration: underline, but I want to increase the padding-bottom and can't with this. I'm trying to get my menu item underlines like this: http://spyr.me/

    Any help would be greatly appreciated!

    My website is below:

    http://www.allaboutskinlightening.net
    December 30, 2015 at 5:44 pm #175242
    Susan
    Moderator

    Try adding this to your stylesheet (using Firebug, I identified around line 225):

    
    .genesis-nav-menu li.current-menu-item > a,
    .genesis-nav-menu > li > a {
    	border-bottom: 2px solid transparent;
    }
    
    .genesis-nav-menu li.current-menu-item > a:hover,
    .genesis-nav-menu li.current-menu-item > a,
    .genesis-nav-menu > li > a:hover {
    	border-color: #E00E79;
    }
    
    
    December 30, 2015 at 6:17 pm #175243
    undercurrent
    Member

    Thank you!

    Is there a way to make the border-bottom the same width as the text?

    December 31, 2015 at 11:14 am #175284
    undercurrent
    Member

    Can anyone help me figure out how to make the border-bottom span the same width as the text of the menu items?

    Any advice would be appreciated! 🙂

    January 19, 2016 at 3:12 pm #176959
    undercurrent
    Member

    I'm still trying to get the bottom border to match the width of my menu items. Any help would be greatly appreciated!

    Bottom border works:

    .genesis-nav-menu li.current-menu-item > a,
    .genesis-nav-menu > li > a {
    	border-bottom: 2px solid transparent;
    }
    
    .genesis-nav-menu li.current-menu-item > a:hover,
    .genesis-nav-menu li.current-menu-item > a,
    .genesis-nav-menu > li > a:hover {
    	border-color: #E00E79;
    }

    Site: allaboutskinlightening.net

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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

© 2026 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