Title: CSS quirk?
Last modified: August 18, 2016

---

# CSS quirk?

 *  [slappo](https://wordpress.org/support/users/slappo/)
 * (@slappo)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/css-quirk/)
 * Here’s a quirk (I think) I’ve found in CSS (and Beel confirmed it):
    If you’ve
   got sidebar menu items generically defined in the CSS under the #menu ul li ul
   li a (or a similar nesting), color, margin, and padding elements (and maybe more)
   are strictly governed by that #menu nesting, and even if you’ve got
    -  elements nested within that menu that change the color or margin, etc., of
      a SPECIFIC element, the menu nesting trumps those subsequent definitions.
      
      I had to reorganize my entire menu `<div>` last night because one specific
    -  would not conform to the CSS rules, and thinking I was crazy, I asked Beel
      to do the same, and he found the same quirk.
       So, any CSS gurus out there 
      know what I’m talking about? And do you concur? This was the nesting of my
      index.php: `<div id="menu">`
 *  -  blah blah blah
       <li id="fubar">
 *  -  <php call>
 *  </div>
    Is there sometimes an inherting conflict in CSS between div IDs and 
   li IDs if the menu is grouped into one big
    -  ? I’m not sure what the issue is, I’m just stabbing in the dark.

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

 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/css-quirk/#post-67572)
 * Despite the name, I’d bet Slappo would love to kiss you! He has been thumping
   his head against the desk over this for quite some time!
 *  [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/css-quirk/#post-67607)
 * @ ohdear. Shurely not right to have 2 ids for different elements _with the same
   name_ *main* in your example. Please give the poor browser a chance.
 *  [ohdear](https://wordpress.org/support/users/ohdear/)
 * (@ohdear)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/css-quirk/#post-67679)
 * Hehe no kiss necessary 😛 I hoped I helped Slappo 🙂
    Hmm, where do I give 2 
   ids for different elements, the same name? As far as I can see I had one instance
   of each id in the html part of the example.
 *  Thread Starter [slappo](https://wordpress.org/support/users/slappo/)
 * (@slappo)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/css-quirk/#post-68278)
 * I just got back to this! I’m going to check this out. Thank you!

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

The topic ‘CSS quirk?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [slappo](https://wordpress.org/support/users/slappo/)
 * Last activity: [21 years, 11 months ago](https://wordpress.org/support/topic/css-quirk/#post-68278)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
