Title: CSS and Menu Items
Last modified: August 20, 2016

---

# CSS and Menu Items

 *  [pmmedia](https://wordpress.org/support/users/pmmedia/)
 * (@pmmedia)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/css-and-menu-items/)
 * so I have the Menu IDs in my php so I can apply CSS to each menu item and am 
   trying to make the text invisible. It works but when I add the code for item-
   3 the code gets applied to 4,5,6,7,8,9 also because they are subitems of number
   three. Any idea how to exclude the subitems?
 *     ```
       .art-hmenu #menu-item-3 a
       {
       position: relative;
       display: block;
       overflow: hidden;
       height: 36px;
       cursor: pointer;
       font-family: "Agency FB",Arial, Helvetica, Sans-Serif;
       font-variant: small-caps;
       font-size: 23px;
       text-align: left;
       opacity:.0;
       filter:alpha(opacity=0);
       -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
       filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
       }
       ```
   
 * [http://pmmedianow.com](http://pmmedianow.com)

The topic ‘CSS and Menu Items’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [pmmedia](https://wordpress.org/support/users/pmmedia/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/css-and-menu-items/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
