sanjihan sanjihan - 3 years ago 146
CSS Question

video tag with nested children

Is it possible to have a

<video>
tag with nested children? For example:

<video src="../assets/asset1.mp4" controls>
<div>inner div</div>
</video>


inner div never shows up, nor can be found using Developer tools. What is the workaround?

Answer Source

You cannot place content inside of a video tag, if you're trying to put something over the video for some reason, I recommend researching absolute positioning. If you're trying to create something for a fallback, you can set up a script to trigger if the video fails to load.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download