Announcement

Collapse
No announcement yet.

Set the same width for drop down sub menus like parent

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Set the same width for drop down sub menus like parent

    I spent a lot of time and i can't find where to change the width of the drop down menu in order to fit the same as the parent and not exceed to the next top menu item.
    onlineforextradingaccount.com/wp321

  • #2
    Can you post the CSS that you're using and the HTML? That'll help us find out where you need to adjust.
    Cat-herder Extraordinaire

    Comment


    • #3
      Hi there marketingcy,

      I can't find where to change the width of the drop down menu in order to
      fit the same as the parent and not exceed to the next top menu item.
      Bear in mind when I give you a solution that I abhor "Wordpress" and normally avoid it like the plague.

      1. Make a back-up copy of this CSS file ...
        wp321/wp-content/themes/repairpress-pt/style.css
        ...for your safety.
      2. Open the file with a reliable text editor.
      3. Go to line № 1366
      4. Change this code...
        Code:
        @media (min-width: 992px) { .main-navigation .sub-menu > li > a { padding: 13.5px 40px 13.5px 20px; min-width: 150px; background-color: #3baed4; color: #ffffff; white-space: nowrap; border-bottom: 1px solid #5cbcdb; } }
        ...to this...
        Code:
        @media (min-width: 992px) { .main-navigation .sub-menu > li > a { padding: 13.5px 10px 13.5px 20px; min-width: 100%; background-color: #3baed4; color: #ffffff; border-bottom: 1px solid #5cbcdb; } } 
      5. Save the file.




      ~ the original bald headed old fart ~

      Comment


      • #4
        Thank you so much !

        Comment


        • #5
          No problem, you're very welcome.


          ~ the original bald headed old fart ~

          Comment

          Working...
          X