Jump to content
vmars316

How can I specify width/height <video controls > ?

Recommended Posts

 

Hello & Thanks ;

                     <video  controls >
                      <source src="./Html-Color-Names-Tutorial-Files/Html-Color-Names-Tutorial.html.mp4" type="video/mp4">
                      <source src="../Html-Color-Names-Tutorial-Files/Html-Color-Names-Tutorial.html.ogg" type="video/ogg">
                    Your browser does not support the video tag.
                    </video> 

This video is so wide that I can not see it all without moving bottom bar .

How can I specify width/height ?

I see no such option in video controls .

Thanks

 

Share this post


Link to post
Share on other sites

I'm pretty sure you can set width and height attributes. You can also set the dimensions with CSS.

Share this post


Link to post
Share on other sites

Ah yes ,

<style type="text/css">
#video1{
  object-fit: initial;
  width: 800px;
  height: 600px;
}
</style>

Works great !  THANKS 

 

PS: Here's what I am working on: 

http://vmars.us/freeware/HtmlCodeAssist/Html-Color-Names-Tutorial.html

A friend asked me to help with an Acrobat prob :

There is apparently no pdf-editor 'known to mankind'  

that can convert 'highlighted .pdf TEXT' 

into  'highlighted .html TEXT' ,  properly .

Most turn text into images . 

Anyways , my little program HtmlCodeAssist.exe 

makes that task easier .

As Always , Thanks for your help .

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...