Skip to content

Styling when within border radiusΒ #11

@mossypaul

Description

@mossypaul

Hey,
Thanks for the react version of this, makes quite a big speed difference on our site.

One issue we have though, we place the video inside a div so that we can round the corners using border radius but there are some artefacts around the edge from this.

I can fix it within Chrome inspector by removing the width: 100%; on the ::before, is that needed? Or a way for me to remove it? There's also a slight white border on the righthand side, which I can fix by making the width 101%, which is a bit strange, is that just something on mine?

`


<YouTubeLite
id="b-oUa0s8aZ0"
params={{ modestbranding: '1' }}
imageAltText="Closeup of sapling on hillside - YouTube thumbnail"
/>

`

.membership-video { border-radius: 10px; overflow: hidden; box-shadow: rgba(47, 53, 66, 0.11) 0px 11px 43px; }

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions