Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Drew Butcher
33,160 PointsFlex formating in Safari
I am having some issues with displaying content that has a flex box in safari. Here is the basic HTML code:
<div class="panel">
<div class="panel-heading">Heading</div>
<div class="panel-body">
Body with a lot of content
Body with a lot of content
Body with a lot of content
Body with a lot of content
Body with a lot of content
Body with a lot of content
Body with a lot of content
Body with a lot of content
Body with a lot of content
</div>
</div>
I'm writing is SASS and here is the basic styling of the content....
.panel{
border: 1px solid black;
display: flex;
& > .panel-heading {
border: 1px solid green;
}
& > .panel-body {
border: 1px solid blue;
}
}
The problem occurs in Safari only: The first flex item panel-heading is being overtaken by the second flex item panel-body.
Here is a JSFiddle for your viewing https://jsfiddle.net/kf8yybwx/1/
2 Answers

Drew Butcher
33,160 PointsThis post answered my question: http://stackoverflow.com/questions/32689686/overlapping-css-flexbox-items-in-safari
the solution that worked for me was to use:
flex-shrink: 0;

Cindy Lea
Courses Plus Student 6,485 PointsOther student s were asking this same thing about Safari not working like the other browsers. Heres an article that list some info on this....not sure if you can use but hope it helps:
http://stackoverflow.com/questions/24899943/how-to-make-flex-box-work-in-safari