Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Alexandra Velez
seal-mask
.a{fill-rule:evenodd;}techdegree
Alexandra Velez
Front End Web Development Techdegree Student 9,313 Points

How do you inspect buttons that aren't visible?

In the CSS, I specified that the buttons of the carousel should be white, so they're visible against a black background. However, when I preview the page, I can't see the shapes, and I don't know why they aren't appearing as the color white. Previously, the buttons were visible in a dimgray.

.slick-dots li button::before { font-size: 20px; color: white; }

What's the best way to troubleshoot elements when they can't be easily selected or inspected in the developer tools?

Video screenshot

1 Answer

Steven Parker
Steven Parker
231,269 Points

There are two techniques I might use to inspect an element that isn't currently visible:

  1. Just open the dev tools and sift through the elements tab to find the item.
  2. Use "inspect" on a visible parent or sibling element and then navigate to the target item on the elements tab.