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 trial2 Answers
Sue Dough
35,800 PointsThere is not too much of a difference between them. Read these for a better understanding.
http://www.impressivewebs.com/before-after-css3/ http://stackoverflow.com/questions/13400323/why-are-there-two-colons-here-spanbefore
hum4n01d
25,493 PointsThis should be helpful:
https://css-tricks.com/almanac/selectors/a/after-and-before/
Summarized, two colons is for inserting content and one is for :last-child, :nth-child() and other child selectors.
AR Ehsan
7,912 PointsThanks, but can you help me with Challenge Task 4 of 4
Finally, create a new rule that will insert a pseudo-element after an a element. As the content value, define a CSS function that will insert an href attribute's value as content. In html. Thanks!
hum4n01d
25,493 PointsGhost code answered this already
AR Ehsan
7,912 PointsAR Ehsan
7,912 PointsThanks, but can you help me with Challenge Task 4 of 4
Finally, create a new rule that will insert a pseudo-element after an a element. As the content value, define a CSS function that will insert an href attribute's value as content. In html. Thanks!
Sue Dough
35,800 PointsSue Dough
35,800 PointsYes I will answer that on the other post https://teamtreehouse.com/forum/finally-create-a-new-rule-that-will-insert-a-pseudoelement-after-an-a-element .
:)