Zen Cart Logo
Forums / General Questions / How to install an HTML table with YouTube video?

How to install an HTML table with YouTube video?

Views: 3,420

Results 1 to 6 of 6
28 Mar 2011, 5:39 PM
#1
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

How to install an HTML table with YouTube video?

How can I place an HTML table, embedded with a YouTube video, centered as the last item on the home page?

Thank you,
Robert :lookaroun

28 Mar 2011, 7:33 PM
#2
donal avatar

donal

Zen Follower

Join Date:
Jan 2009
Location:
Ireland
Posts:
442
Plugin Contributions:
0

Re: How to install an HTML table with YouTube video?

You dont need a table, you tube uses an iframe in its embed code, just place it between a "center" tag:smile:

29 Mar 2011, 3:45 PM
#3
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: How to install an HTML table with YouTube video?

Donal:

You dont need a table, you tube uses an iframe in its embed code, just place it between a "center" tag:smile:
I’m using the table to add text in a separate cell, but what I can’t seem to figure out is how to place it among all this css stuff that I’m so unfamiliar with.

29 Mar 2011, 5:55 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to install an HTML table with YouTube video?

Still, you don't need (and shouldn't use) a table for placing text or other elements on the page. Wrap the text in a div with a class tag, and possibly another div to enclose all of the content, then style those divs in your stylesheet.

5 Apr 2011, 8:36 PM
#5
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: How to install an HTML table with YouTube video?

gjh42:

Still, you don't need (and shouldn't use) a table for placing text or other elements on the page. Wrap the text in a div with a class tag, and possibly another div to enclose all of the content, then style those divs in your stylesheet.
I’m struggling to understand exactly what you mean by styling the divs in the stylesheet.css. Would you mind providing a simple example, where YouTube = video script ??

5 Apr 2011, 9:06 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to install an HTML table with YouTube video?

Say you put your YouTube content in the file, inside a div like this:

<div id="youtubeContent">
  <p class="youtubeDescription">Your text about the video.</p>
  <...your youtube content code...>
</div>

In your stylesheet, add rules like

#youtubeContent {margin: auto; text-align: center;}

.youtubeDescription {color: #667722; font-size: 1.2em;}

using whatever properties you want to set for the elements.