Title: selecting a html element
Last modified: May 18, 2021

---

# selecting a html element

 *  [yestube](https://wordpress.org/support/users/yestube/)
 * (@yestube)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/selecting-a-html-element/)
 * At the top of the page, there are breadcrumbs and I want to edit the last one.
   I have tried using the last child property to specify it but am not getting any
   luck. Does anyone know how I might be able to edit specifically it?
    Good day.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fselecting-a-html-element%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/selecting-a-html-element/#post-14439464)
 * The last one isn’t really an element in itself, it’s just text within the overall`
   <nav>` element. However, you can still style it separately than the rest because
   the rest are styled separately as anchor links. So just style the entire `<nav
   >` to affect the last breadcrumb.
 *     ```
       nav.woocommerce-breadcrumb {
           color: blue;
       }
       ```
   
 *  Thread Starter [yestube](https://wordpress.org/support/users/yestube/)
 * (@yestube)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/selecting-a-html-element/#post-14440313)
 * Thank you for the advice but sadly that only works with color. If I try to change
   the font size or anything of the sort it affects the whole thing.
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years ago](https://wordpress.org/support/topic/selecting-a-html-element/#post-14442271)
 * You then need to override the `nav.woocommerce-breadcrumb` rules with more specific`
   nav.woocommerce-breadcrumb a` rules that are applied to the link elements only.

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

The topic ‘selecting a html element’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/selecting-a-html-element/#post-14442271)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
