How to make The <Video> and <input> align top

The two automatically bottom-align to

Unless you are overriding it I would have thought they are vertical-align:baseline rather than vertical-align:bottom with that HTML and no CSS.

So what should I do to make the align to the topline of the

I tried to use

video width=β€œ320” height=β€œ240” align=β€œtop” controls

I guess if it’s a img, it would work fine.

they are inline tags so it is the CSS vertical-align that determines where they are aligned relative to the other inline elements on the same line.

1 Like

So try this:

input, video {vertical-align: top;}
1 Like

Thank you.

My problem solved. Thank you!

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.