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 The attr() CSS Function

JOE BELL
JOE BELL
11,113 Points

content: attr(title); displays wrong value

when I preview in the browser, the Value/title name PNG displays instead of JPG. Even though -JPG is the value of the title attribute in the HTML element.

1 Answer

Travis Alstrand
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Alstrand
Data Analysis Techdegree Graduate 49,443 Points

If anyone else encounters this issue, it would be extremely helpful to be able to see your code! :smiley:

You could provide a snapshot of your Workspace or a link to a GitHub repo if you're working on it locally. Thanks!