Mike Eghtebas
asked on
Video overlay fine tuning...
I had a very good solution from Julian Hansen at: https://www.experts-exchange.com/questions/28736940/a-tag-with-OnClick.html
This works great; but there are some minor issues I need help with.
1. There is no maximize, stop or start buttons when the video is played. Is it possible with overlay to have play/stop or max buttons? If not I could just at least add a note like (ESC to cancel) to video description. In absence of maximize, I need to modify css to use maximum screen area.
2. As shown below, the video is not centered. I guess there need to be some adjustment to CSS to show the video centered.
3. See http://datapassion.net/index.html , Video hyperlinks are spread through out index.html. The hyperlink at top works fine (user clicks on the hyperlink Data Upload under Kaiser Permanente and sees the video in the correct spot. But there is another hyperlink at the very bottom (under Other Companies... the second hyperlink). To get to this hyperlink at the bottom of index.html, users need to scroll down to it first but when they click on the hyperlink to see the video, the video starts playing on the top of the page not in view. So, user has to scroll up to see the video. How can I fix my css below to fix this issue.
This works great; but there are some minor issues I need help with.
1. There is no maximize, stop or start buttons when the video is played. Is it possible with overlay to have play/stop or max buttons? If not I could just at least add a note like (ESC to cancel) to video description. In absence of maximize, I need to modify css to use maximum screen area.
2. As shown below, the video is not centered. I guess there need to be some adjustment to CSS to show the video centered.
3. See http://datapassion.net/index.html , Video hyperlinks are spread through out index.html. The hyperlink at top works fine (user clicks on the hyperlink Data Upload under Kaiser Permanente and sees the video in the correct spot. But there is another hyperlink at the very bottom (under Other Companies... the second hyperlink). To get to this hyperlink at the bottom of index.html, users need to scroll down to it first but when they click on the hyperlink to see the video, the video starts playing on the top of the page not in view. So, user has to scroll up to see the video. How can I fix my css below to fix this issue.
.overlay {
width: 100%;
background: rgba(0,0,0,.75);
position: absolute;
left: 0;
top: 0;
}
.videobox {
width: 50%;
position: absolute;
left: 50%;
margin-left: -25%;
top: 10%;
background: white;
text-align: center;
padding: 20px;
border-radius: 5px;
}
.close {
width: 36px;
height: 36px;
position: absolute;
top: -18px;
right: -18px;
display: block;
background: transparent url(images/close.png) no-repeat center center;
opacity: .8;
}
.close:hover {
opacity: 1;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:) thank you Mike, you are most welcome.
ASKER