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 CSS Selectors Advanced Selectors Pseudo-Elements - ::before and ::after

Rouillie Wilkerson
Rouillie Wilkerson
10,419 Points

::before, not working as indicated. https://w.trhou.se/zdg5bwtmty

I've copied the same code as Gil, but not getting the same results. I can't seem to figure out what's going wrong, here.

1 Answer

Diego Vogel
Diego Vogel
12,876 Points

Hi Rouillie,

Looks like there were some issues in style.css. The first rule didn't have a closing bracket and some of the pseudo-element selectors had a space between "::" and the pseudo-element name.

Here's a snapshot with the corrected CSS: https://w.trhou.se/ud40hoywui

Rouillie Wilkerson
Rouillie Wilkerson
10,419 Points

Nope. I cut and pasted yours. Still not working.

Rouillie Wilkerson
Rouillie Wilkerson
10,419 Points

Ah, I went back in and took it apart. I get it. Thank for your help!

Diego Vogel
Diego Vogel
12,876 Points

Great! Glad you got it figured out.