Title: Dropdown menu :: background
Last modified: August 31, 2016

---

# Dropdown menu :: background

 *  Resolved [Juice_1973](https://wordpress.org/support/users/juice_1973/)
 * (@juice_1973)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/dropdown-menu-background/)
 * Hello,
 * please help… please check my yet under construction site [http://addjuice.fi](http://addjuice.fi)
   and Portfolio dropdown menu. How can I get those backgrounds white from side 
   to side, when you hover links? Maybe you can use the browsers inspector tool 
   and find the solution from the code?
    This website based on Enigma theme.
 * Thanks in advance!!

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

 *  [sarah semark](https://wordpress.org/support/users/tinkerbelly/)
 * (@tinkerbelly)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/dropdown-menu-background/#post-7007985)
 * Hi there! In order to ensure the links appear full-width, you’ll need to adjust
   your CSS code a little.
 * Basically, you’ll want to make your `li` elements—`.navbar-nav li` either `width:
   100%` or `display: block`. Because they’re set as inline-block here, they don’t
   extend to the full width of their containing element.
 * You will need to be a bit more specific with your selector, so that the CSS isn’t
   also applied to your main menu items. Try this:
 *     ```
       .navbar-nav .dropdown-menu li {
           display: block;
       }
       ```
   
 * Make sure to remove the `!important` flag from your `.navbar-nav li` declaration;
   this isn’t needed here. As a general rule, only use the `!important` flag if 
   it’s your only option, since it can cause problems further down the line. Here’s
   the updated code for that section:
 *     ```
       .navbar-nav li {
           float: none;
           display: inline-block;
           height: 32px;
       }
       ```
   
 * That should do the trick! 🙂
 *  Thread Starter [Juice_1973](https://wordpress.org/support/users/juice_1973/)
 * (@juice_1973)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/dropdown-menu-background/#post-7008061)
 * THANK YOU SARAH!!!!!!!!!!!! You are great 😉
 * I’m very newbie with this, as you can see my site coding….

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

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

## Tags

 * [20q2016](https://wordpress.org/support/topic-tag/20q2016/)
 * [background](https://wordpress.org/support/topic-tag/background/)
 * [dropdown](https://wordpress.org/support/topic-tag/dropdown/)
 * [hover](https://wordpress.org/support/topic-tag/hover/)

 * 2 replies
 * 2 participants
 * Last reply from: [Juice_1973](https://wordpress.org/support/users/juice_1973/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/dropdown-menu-background/#post-7008061)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
