Take a look at this fiddle: https://jsfiddle.net/xnr7tqm1/
This is the html code I'm working with:
<div class="media-container">
<iframe width="365" height="200" src="https://www.youtube.com/embed/JqjIb6FhU_k" frameborder="0" allowfullscreen></iframe>
</div>
and here is the css for it:
.media-container {
position: fixed;
right: 28px;
bottom: 77px;
width: 340px;
height: 200px;
border-radius: 7px 7px 0 0;
overflow: hidden;
text-align: center;
iframe {
margin-left: -16px;
}
}
.media-container:after, .media-container:before {
bottom: 0%;
left: 0%;
border: solid transparent;
content: " ";
height: 0;
width: 164px;
position: absolute;
pointer-events: none;
}
.media-container:after {
border-color: rgba(255, 255, 255, 0);
border-bottom-color: #fff;
border-width: 16px;
margin-left: -16px;
}
.media-container:before {
border-color: rgba(245, 41, 34, 0);
border-bottom-color: #fff;
border-width: 16px;
margin-left: 175px;
}
I want to round the corners at the bottom of the video just like at the top. However, using a pseudo element to draw the arrow at the bottom makes it difficult to round the bottom corners in this setup.
Does anyone have a solution for this issue?
Thank you!