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

WordPress How to Build a WordPress Theme Preparing to Code WordPress Templates Theme Images Directory

Different browser results of exercise files?

Following along with Zac in How to build a WordPress theme, I have discovered that the CSS in the theme does not work Firefox. When I load the nav in Chrome it display like Zac's version. However when in Firefox it does not honor the "webkit" block mode if that is what it is called. Does anybody have any info or fix for this. Note: I am trying to understand from a conceptual standpoint so I learn a prudent method for dealing with it. I can live with it here, but I want to understand so I can offer consistent solutions. Thanks.

3 Answers

James Richards
James Richards
2,976 Points

Hi Morg,

I haven't followed the course your looking at specifically, but you do mention "webkit" in your question, this is called a vendor prefix. Not all web browsers introduce the latest features at the same time, particularly with CSS. As a result they introduce these vendor prefixes to allow developers to use the latest experimental features in certain browsers.

A great website to use and see what features are supported in each web browser is called Can I Use - http://caniuse.com/

Simply search for a CSS property such as "border-radius" and the site will present you with a table showing you the support for that feature across all major browsers, but more importantly, it will show you if the property requires a prefix.

Firefox's vendor prefix is -moz-, webkit's (safari, chrome) is obviously -webkit-. Why don't you try adding a prefix for firefox underneath your webkit declaration.

I know this doesn't answer your question directly, but I hope it helps. I use Can I Use at least a handful of times a week for reference, it's a great resource.

Good luck Morg,

James

It sure does! Thanks a lot I am going to try your suggestion and experiment with what you said. I will also make a reference of that website to check browser features. Thanks a lot again!!

Matt Campbell
Matt Campbell
9,767 Points

Have you covered the track that introduces you to normalize.css? It removes most of the cross browser inconsistencies.