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

Design

Brandon Brigham
Brandon Brigham
3,716 Points

YouTube videos are overlapping on site in mobile version

Hello,

If you visit this site I'm working on @ http://andersoncoastalproperties.com/del-mar

If you make the browser window small as possible (mobile-width-style) you will notice that the two youtube videos turns into one. I'm not sure why these videos are overlapping.

Any ideas?

1 Answer

Julian Gutierrez
Julian Gutierrez
19,201 Points

I don't think the videos are overlapping, it looks like the first video is "disappearing". From what I can see the first video is in a div

<div class="symple-column symple-one-half symple-column-first symple-all">

On mobile that class structure's display is being set to "display:none".

@media only screen and (max-width: 450px)
div.symple-column.symple-one-half.symple-column-first.symple-all {
    display: none;
}
Brandon Brigham
Brandon Brigham
3,716 Points

Thank you for catching that Julian!