Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedded youtube variable width

Status
Not open for further replies.
Jul 7, 2010
21
DE
Is there a way to embed variable width and height youtube iframe videos based on percentage instead of fixed width and height in pixels?any answer v.appreciated
 
Change the pixels for percent in the embed code.


<iframe class="youtube-player" type="text/html" width="[red]80%[/red]" height="[red]60%[/red]" src=" frameborder="0">
</iframe>


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top