Title: Dropdown menu background
Last modified: November 22, 2017

---

# Dropdown menu background

 *  [karazowa](https://wordpress.org/support/users/karazowa/)
 * (@karazowa)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/dropdown-menu-background-2/)
 * Hi there,
 * I’m using image as background in dropdown menu. The image is a round-corner rectangle.
   In the first cell of the dropdown menu, the site displays the image with white
   background. The second cell does not have this kind problem. However, the gap
   between each cell is set to be white.
 * How do I close off this gap and get the first cell to show correctly?
 * The site is using Virtue 3.0.7
 * Help plz, thanks!

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/dropdown-menu-background-2/#post-9708823)
 * Hey,
    Can you post a link to your site? Thanks!
 * Hannah
 *  Thread Starter [karazowa](https://wordpress.org/support/users/karazowa/)
 * (@karazowa)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/dropdown-menu-background-2/#post-9710769)
 * Here:
 * [http://47.93.225.71/](http://47.93.225.71/)
 * Thank you for reply:)
 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/dropdown-menu-background-2/#post-9711343)
 * Hey,
    Try adding this to your custom css box in Theme Options > Advanced Settings:
 *     ```
       .sf-menu ul {
           background: transparent;
           -webkit-box-shadow: none;
           box-shadow: none;
           border: 0 !important;
       }
       .sf-menu ul li {
           border-bottom: 0;
       }
       ```
   
 * Does that work for you?
 * Hannah
 *  Thread Starter [karazowa](https://wordpress.org/support/users/karazowa/)
 * (@karazowa)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/dropdown-menu-background-2/#post-9717083)
 * Hi Hannah,
 * The code works when I stop using image as background and use background-color
   instead.
    But the gap between primary menu and dropdown menu still exits. Is 
   there anyway to eliminate this gap as well? Thanks again.
 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/dropdown-menu-background-2/#post-9719215)
 * I’m seeing your dropdown menu display totally different now than before. Can 
   you send a screenshot of the space you mean? [https://postimages.org/](https://postimages.org/)
 * Hannah
 *  Thread Starter [karazowa](https://wordpress.org/support/users/karazowa/)
 * (@karazowa)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/dropdown-menu-background-2/#post-9724339)
 * Hi Hannah,
 * I’m trying different settings on the menu, and it seems alright now.
    Here is
   the css that fix the dropdown menu for me.
 *     ```
       #nav-main ul.sf-menu ul li a{
           text-align:center;
           background:transparent !important;
           background-color:#e6868d !important;
       }
       ```
   
 * But I’m having trouble configuring the mobile navigation menu. The menu is blank.
   
   Any idea?
 * Thanks.
 *  Thread Starter [karazowa](https://wordpress.org/support/users/karazowa/)
 * (@karazowa)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/dropdown-menu-background-2/#post-9724395)
 * Never mind. I have got it to work! Thank you.
 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/dropdown-menu-background-2/#post-9726797)
 * Glad to hear it!
 * Hannah

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Dropdown menu background’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/virtue/3.4.15/screenshot.png)
 * Virtue
 * [Support Threads](https://wordpress.org/support/theme/virtue/)
 * [Active Topics](https://wordpress.org/support/theme/virtue/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/virtue/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/virtue/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [hannah](https://wordpress.org/support/users/hannahritner/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/dropdown-menu-background-2/#post-9726797)
 * Status: not resolved