Title: CSS .current-page
Last modified: August 21, 2016

---

# CSS .current-page

 *  Resolved [sam walters](https://wordpress.org/support/users/sam-walters/)
 * (@sam-walters)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/css-current-page/)
 * Hi i have tried to add this to my css and for the life of me i can not get it
   to work:
 *     ```
       ul.nav li.current_page_item a,
       ul.nav li.current_page_parent a,
       ul.nav li.current_page_ancestor a,
       ul.nav li.current-page-ancestor a,
       ul.nav li.current-cat a,
       #menu-item-type-custom a,
       ul.nav li.li.current-menu-item a {
       border-style: solid;
       border-width: 2px;
       border-color: #ffffff;
       }
       ```
   
 * if i add background colour then it works but this just wont :/ here is the site
   i am working on atm [](http://www.smart-sign.co.uk)
 * any help would be great thanks,
 * Sam

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [12 years, 6 months ago](https://wordpress.org/support/topic/css-current-page/#post-4386379)
 * In which theme?
 *  Thread Starter [sam walters](https://wordpress.org/support/users/sam-walters/)
 * (@sam-walters)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/css-current-page/#post-4386380)
 * Appply Theme
 * By WooThemes
 *  Thread Starter [sam walters](https://wordpress.org/support/users/sam-walters/)
 * (@sam-walters)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/css-current-page/#post-4386512)
 * Hi i have managed to solve this issue with this code
 *     ```
       ul.nav li.current-page-item a,
       ul.nav li.current-page-parent a,
       ul.nav li.current-page-ancestor a,
       ul.nav li.li.curre-t-menu-item a
       {
       border-style: solid !important;
       border-width: 2px !important;
       border-color: #ffffff !important;
       }
       ```
   
 * Thanks
 *  Thread Starter [sam walters](https://wordpress.org/support/users/sam-walters/)
 * (@sam-walters)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/css-current-page/#post-4386513)
 * you can take out this code from the above `ul.nav li.li.curre-t-menu-item a` 
   it has no relevance to the css

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

The topic ‘CSS .current-page’ is closed to new replies.

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [sam walters](https://wordpress.org/support/users/sam-walters/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/css-current-page/#post-4386513)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
