Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello took and have the following code and trying to locate a way to align the video in the bottom left Or bottom right corner. Have looked on Google and tried several things but have not found a solution that works the following code plays fine but is in the upper left corner. Any help or ideas would be great. For bottom left or right
HTML
<video width="320" height="240" autoplay>
     <source src="https://cdn.domain.com/videolink1.mp4">
     <source src="https://cdn.domain.com/videolink1.mp4">
     Your browser does not support the video tag.
</video>


What I have tried:

looked on google but nothing worked on what i found
Posted
Updated 30-Apr-20 13:09pm
v2
Comments
MadMyche 30-Apr-20 18:13pm    
Most likely your answer is going to be CSS related, so added that tag
Reddog2 30-Apr-20 18:29pm    
OK thanks but do not take and see where you added the tag for the CSS that you are speaking about.If you could give a example withe the code I added and show where I need to add the CSS tag thanks in advance. Here is the code I have now,



Your browser does not support the video tag.


Where would I add the css tags? To align in a bottom left corner etc, thanks again in advance
MadMyche 30-Apr-20 18:41pm    
Is this all the code you have for the page?
Reddog2 30-Apr-20 18:47pm    
As of the moment yes, I am working on the rest of the site code for a website I am building 4 myself. But the video in question is going to be added to certain pages through out the site.

1 solution

The best thing to do with starting to build a website is probably to use something like Flexbox to help you out with laying out your pages.

Here is some reading material to help you get started:
Basic concepts of flexbox - CSS: Cascading Style Sheets | MDN[^]
CSS Flexbox (Flexible Box)[^]
A Complete Guide to Flexbox | CSS-Tricks[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900