?
Solved

embedding a youtube video in a specific area

Posted on 2013-02-02
12
Medium Priority
?
423 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

 

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 2000 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
 
LVL 8

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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

765 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