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

General Advice - CSS Property Browser Compatibility

I just spent 30 mi trying to get the 'text-decoration-line' CSS property (https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-line) to work in my workspace. I finally scrolled to the bottom of the developer.mozilla.org page and I see a table called 'Browser compatibility' and I see that the 'text-decoration-line' CSS property isn't compatible w/Chrome (I'm using Chrome).

Do I generally need to keep an eye out for the fact that some CSS properties may simply not work in some, or most, browsers.

Thanks, Gedalyah

2 Answers

Simply, the answer is Yes. CSS will sometimes be compatible with all browsers, sometimes they will do different things with the same style, and sometimes some styles will be supported and some not. A great reference to find out is this website called caniuse.com just type what you are using if when you think there might be an issue and it will tell you which browsers will support the style or not.

Thanks for the confirmation.

Not a problem.