• 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

LANDSCAPE – Nav submenu width change in stylesheet.css?

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 › LANDSCAPE – Nav submenu width change in stylesheet.css?

This topic is: not resolved
  • This topic has 15 replies, 4 voices, and was last updated 13 years, 6 months ago by nickthegeek.
Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • November 25, 2012 at 4:31 pm #1634
    Eclipsed
    Member

    I have a sub category that is listed from a horizontal menu under the header.  The sub category is Antelope Canyon Pictures and it shows Antelope Canyon on one row and Pictures on row below it.  Does anyone know what needs to be changed to display it one one row?

     

    Thanks in advance.

    November 25, 2012 at 6:30 pm #1646
    SoZo
    Member

    It helps immensely if you include a link to your site with all questions.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    November 26, 2012 at 12:36 pm #1729
    Eclipsed
    Member

    http://www.darkeclipse.com

    November 28, 2012 at 11:03 am #2046
    SoZo
    Member

    You can adjust the widths of #nav li ul and #nav li li a, #nav li li a:link, #nav li li a:visited

    I recommend installing the Firebug add on for Firefox or using Chrome's Firebug Lite which will enable you to right click on any element to inspect it and determine the associated style rules or the selectors required to create new style rules.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    November 28, 2012 at 2:22 pm #2102
    Eclipsed
    Member

    Thanks, that worked.  What option is controlling the position of the secondary sub menu?  I want to move it 10 pixels or so to the right becaues right now it overlaps on the first menu.

    November 28, 2012 at 4:48 pm #2159
    SoZo
    Member

    That margin is set in the #nav li ul ul rule. Firebug will show you all of the rules for any element.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    November 29, 2012 at 9:26 am #2276
    Eclipsed
    Member

    Thanks,  will have to give Firebug a shot.  I've heard of it before but havent used it.

    November 29, 2012 at 10:18 am #2307
    Eclipsed
    Member

    #nav li ul ul {

    margin: -29px 0 0 173px;

    }

    I tried adjusting both numbers in both directions (increasing and decreasing pixels) but it didnt do anything.  The sub menu still shows up the same.

    December 2, 2012 at 12:38 pm #2882
    rolandoooo
    Participant

    Hello SozO and eclipsed, I tried to change the width in #nav li ul and #nav li li a, #nav li li a:link, #nav li li a:visited and also in

    #nav li ul ul { margin: -29px 0 0 173px; } But there are no changes. What I want is only to change the width of the submenu.

    Because I have long names.

    ---------------------------------------------------------------------

    What I need is:

    Category One

    Subpage 1 with long title with long title with long title

    Another subpage 2 with long title with long title with long title

    Another subpage 3 with long title with long title with long title

    -----------------------------------------

    What I have is:

    and what I dont want is:

    Category One

    Subpage 1 with long

    title with long title

    with long title

    Another subpage 2

    with long title with

    long title with long title

    Another subpage 3

    with long title with

    long title with long title

    -----------------------------------------------------------

    Thanks

    There are any .css to change this ?

    Roland

     

    December 2, 2012 at 12:44 pm #2885
    rolandoooo
    Participant

    Thank you I dont know why today it works.

    December 2, 2012 at 1:25 pm #2892
    SoZo
    Member

    You're welcome 🙂


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    December 3, 2012 at 9:22 am #2994
    Eclipsed
    Member

    Sozo,

    My issue is still not resolved

    December 3, 2012 at 2:04 pm #3104
    rolandoooo
    Participant

    that works

     

    .menu-primary li li a,

    .menu-primary li li a:link,
    .menu-primary li li a:visited,
    .menu-secondary li li a,
    .menu-secondary li li a:link,
    .menu-secondary li li a:visited,
    #header .menu li li a,
    #header .menu li li a:link,
    #header .menu li li a:visited {
    background: none;
    background-color: #FF9900;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    font-size: 15px;
    padding: 10px;
    position: relative;
    text-transform: none;
    width: 450px;
    }

    December 3, 2012 at 2:17 pm #3111
    Eclipsed
    Member

    Roland,

    Your code is different from what Sozo told me needs to be modified in order for secondary menus to be different.

    In your case to get it working did you change the width in your code? What did you change it from?

    December 4, 2012 at 6:43 pm #3373
    rolandoooo
    Participant

    ok my question was how to change the width of the subnavigation. I only changed the width to 450px.

    December 4, 2012 at 8:14 pm #3380
    nickthegeek
    Member

    you would change this width to 1000px but it ends up making the menu kind of unusable.
    #nav li ul {
    z-index: 9999;
    position: absolute;
    left: -999em;
    height: auto;
    width: 200px;
    margin: 0;
    padding: 0;
    }

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