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

Hello, I am following through the tutorial for CSS 3, and for the "flexbox" part, it works fine in Chrome but not Safari

Hello, I am following through the tutorial for CSS 3, and for the "flexbox" part, it works fine in Chrome but not Safari. I found this when I opened the file from the tutorial with Safari. The navigation bar is not working in over 769px width, and the contents also misplaced. How do I fix it and moreover, anything else I need to add for this flexbox function work in all the browsers?

3 Answers

Logan Schmidt
Logan Schmidt
8,554 Points

You need to use the browser prefix: -webkit-

Go to www.caniuse.com to see if something isn't working due to this reason.

Hi Bosco,

Can you post the css you're using?

Here's a support table for flexbox which will show you what browsers support it and also what prefixes you need to use for the browsers that do support it.

http://caniuse.com/flexbox

Also, take a look at the links in the "resources" section. Some may be useful to you.

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Bosco;

Flexbox is not entirely implemented yet by the W3C. What version of Safari are you using and are you using the -webkit- prefix?