1

Is there any way to position html5 video subtitles 30px from bottom with javascript or css, Something like that.

<track kind="captions" label="English" srclang="en" src="en.vtt" default/>

.track{
    margin-bottom: 30px;
}
Alex Cross
  • 23
  • 4
  • 1
    No, the track itself cannot be positioned differently. Tracks can be styled with the [`::cue`](https://developer.mozilla.org/en-US/docs/Web/CSS/::cue) pseudo selector, but positioning, margins and paddings are not permitted properties. You'd need to create your own kind of track like in [this answer](https://stackoverflow.com/a/45087610/11619647) to get full control. – Emiel Zuurbier Oct 23 '20 at 18:27

0 Answers0