Solved

embedding a youtube video in a specific area

Posted on 2013-02-02
12
407 Views
Last Modified: 2013-02-03
I have a youtube video that I want to place precisely in a specific spot on my web page: right in the middle of the flat screen tv image. I used this code:

<div style="position: absolute; left: 66%; top: 27%; height: 20%; width: 20%">
<iframe id="ytplayer" type="text/html" width="225" height="127" src="http://www.youtube.com/embed/bpqE2E2bduk?autoplay=0&origin=http://foundlogic.com"  frameborder="0"/>
</div>

However when I insert the iframe code above for placing the video everything below the video disappears. Attached is the screenshot of what happens.

What I am asking for is the code that places the youtube video right in the center of the flat screen tv image AND at the same time, doen't cause the rest of the page to disappear,

youtube effect
0
Comment
Question by:JaseSt
  • 6
  • 5
12 Comments
 
LVL 16

Expert Comment

by:HagayMandel
ID: 38848042
Try adding:  wmode="transparent" to your code:
0
 

Author Comment

by:JaseSt
ID: 38848051
Thank you, but I'm not a coder. Could you please show the entire code with your addition in it?
0
 
LVL 16

Expert Comment

by:HagayMandel
ID: 38848058
<iframe id="ytplayer" type="text/html" width="225" height="127" src="http://www.youtube.com/embed/bpqE2E2bduk?autoplay=0&origin=http://foundlogic.com"&wmode=transparent"  frameborder="0"/>
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:JaseSt
ID: 38848061
No, sorry. That didn't change anything. Still can't see the rest of the page.
0
 
LVL 16

Expert Comment

by:HagayMandel
ID: 38848091
Please provide a link
0
 
LVL 16

Expert Comment

by:HagayMandel
ID: 38848094
0
 

Author Comment

by:JaseSt
ID: 38848112
here it is, and why am I not getting my video but a bat logic? Strange

http://michaelbehr.com/foundlogic/home6-sliced.html
0
 

Author Comment

by:JaseSt
ID: 38848138
Ok, got the video to show up. But still not the rest of the page. Know what's going on?
0
 
LVL 16

Accepted Solution

by:
HagayMandel earned 500 total points
ID: 38848161
It's not a problem with your iframe!
If you look at the page source, nor further content is rendered!
Try closing the iframe tag: <iframe></iframe>
0
 

Author Closing Comment

by:JaseSt
ID: 38848170
Wow! Something so simple. Don't know how I missed that. Anyway, that worked. Thank you!

If you're willing I'm also having a rollover problem as you can see if you hover over the different multicolored buttons below the video. They get stuck on hover. I'll post the link to the question here, if you're interested.

Thanks again, HagayMandel.
0
 

Author Comment

by:JaseSt
ID: 38848177
0
 
LVL 7

Expert Comment

by:Alicia St Rose
ID: 38848850
Hi JaseST,
Since this question is already closed, you'd probably get better results for you rollover issue if you started a new question.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question