Identifying the right CSS class
-
I’m struggling to identify the right CSS classes for elements within a page.
(I’m using Firefox.)Scrolling down to Coaching Team in page listed, under each photo is a short biog which I’d like in white. By default the color is #333.
Right clicking on the text and selecting Inspect Element, gets the following:
.layout-173 .element-7 { color: #333; font-size: 13px; font-family: ; margin: 5px 0; }
If I change #333 to #fff, it works, but if I then post
.layout-173 .element-7 { color: #fff; }
into WP’s Custom CSS pane, the color doesn’t change.
However, I’ve found that if I right click on the text, then select the relevent html, and Copy CSS Selector, I get
div.team-content:nth-child(3)
I can’t see where the “:nth-child(3)” bit comes from, but if I use it to change the color in WP’s Custom CSS pane, the color does change.div.team-content:nth-child(3) { color: #fff; }
What is it about
.layout-173 .element-7
that isn’t addressing the correct element?The page I need help with: [log in to see the link]
- The topic ‘Identifying the right CSS class’ is closed to new replies.