![]()  | 
	
	
		
 resize youtube 
		
		
		
		Ok. I'm trying to resize a youtube video to play in a page but it's just not letting me! 
	Here is my css Code: 
	.left {In my left class I have an image. closed my div tag I have a new right div and thats where my youtube video should play!! So inside this new div tag I have the youtube video. You know what will be easier? let me make you a page.. http://img293.imageshack.us/img293/8408/affiliatepagemi4.png This is the youtube.. and I change this from <object width="425" height="355"> to object class. http://www.youtube.com/watch?v=4g9Mqs-Pw2o Thats my youtube powerpoint. http://www.discountprintingnetwork.com/partner/  | 
	
		
 Re: resize youtube 
		
		
		
		Change the embed code you've entered to the dimensions you want. 
	 | 
	
		
 Re: resize youtube 
		
		
		
		What do you mean? 
	 | 
	
		
 Re: resize youtube 
		
		
		
		Well I assume you've hard coded the dimensions into the tpl, and the embed tag has dimensions included in it too... 
	So either edit (which is the cleanest way)... <embed width="425" height="355" to <embed width="150" height="125" Or the css to override it like you want... .object embed { height:125px; width:150px; } Hope this helps.  | 
	
		
 Re: resize youtube 
		
		
		
		http://www.discountprintingnetwork.com/partner/ 
	I didn't do anything to the menu.. take a look at that. why is my menus wide? thanks for helping me bud.  | 
	
		
 Re: resize youtube 
		
		
		
		Change the main <TD>'s width to 100% - the one that contains the vid. 
	The menu is wide because it hasn't got a width set and there's nothing to expand the main content's cell to it's own 100% width (which would push/squeeze the side menu and make it appear smaller).  | 
	
		
 Re: resize youtube 
		
		
		
		I dont even know what I'm doing wrong.. can you help me get the page how I have it in the photo? 
	http://img293.imageshack.us/img293/8408/affiliatepagemi4.png here is what it looks like now.. http://img378.imageshack.us/img378/4909/ewwjc4.th.jpg This is my /partner/main/welcome.tpl Code: 
	<div class="left" >the .css is still the same. I basically need blue around the youtube in the table row.. but i'm going to need to center this video too.. thanks so much for taking the time..  | 
	
		
 Re: resize youtube 
		
		
		
		Put the image and the video back into the main content table (where the video was before). And make sure the main content table has a width of 100% 
	The main content table I am referring to is the one with these comments inside it... <!-- central space --> stuff <!-- /central space -->  | 
	
		
 Re: resize youtube 
		
		
		
		Now put them into the one TD (not two) and put a <br /> tag between them. 
	 | 
	
		
 Re: resize youtube 
		
		
		
		ok but how do I separate these and make the backround to that div blue. I added:     BACKGROUND-COLOR: #448ccb; 
	also. the image.. i need that to be closer to the menu.. sorry for the 51 questions..  | 
	
		
 Re: resize youtube 
		
		
		
		Get rid of all the excess TDs that you are putting inside the main TD. It's invalid code. 
	 | 
	
		
 Re: resize youtube 
		
		
		
		It should look a little like this... 
	Code: 
	 | 
	
		
 Re: resize youtube 
		
		
		
		yes but remember we did that to fix the menu.. 
	 | 
	
		
 Re: resize youtube 
		
		
		
		Get rid of the floats you do not need them. 
	 | 
	
		
 Re: resize youtube 
		
		
		
		I did that but it doesnt even show the youtube video and shows the a cell space going across the bottom of the main image. 
	i deleted the float..  | 
	
		
 Re: resize youtube 
		
		
		
		Use the code you had earlier that was working... do not copy straight from my code. Just use my code as a guide as I can see there are too many central spaces running around now. 
	 | 
	
		
 Re: resize youtube 
		
		
		
		Think it's only the breadcrumb to sort out now, then wrap a DIV or a table around the image and vid so you can then apply a background. 
	And sorry about adding all the br's, those td's got me confused ;D  | 
	
		
 Re: resize youtube 
		
		
		
		great. but now the breadcrums are all messed up.. also .right isn't blue like I'm asking it to be.. 
	here is my code: Code: 
	/* partner main page */but how come the right doesnt have a backround color of blue?! Code: 
	<td valign="top" width="100%"> | 
	
		
 Re: resize youtube 
		
		
		
		yeah I just tried to change the <tr> to a table class and it just turns all blue throughout that whole part and you dont see the video.. 
	and if i put the table on the image.. (which the backround should be around the youtube..) the whole things messes up. it adds the footer to the menus col and the video is under the image... also.. thanks for helping me out. no need to be sorry. i'm glad you're taking the time to help!!!  | 
	
		
 Re: resize youtube 
		
		
		
		From what we had originally with your code the tds should look like as follows... 
	<td class="loginMenu">left</td> <td width="100%" valign="top">central space including breadcrumb above vid and image</td> <td class="VertMenuRightColumn">right</td>  | 
	
		
 Re: resize youtube 
		
		
		
		It won't have a background of blue because you're entering invalid TDs. A TD cannot go inside another TD without it having a table supporting it first. 
	<td><td></td><td> doesn't work <table><tr><td><table><tr><td></td></tr></table></td></tr></table> although ugly, works. But we're not asking for extra TDs so I have no ideas where they're coming from as they weren't there before  | 
	
		
 Re: resize youtube 
		
		
		
		I'm using the x-affiliate and just recolored the page.. In the 
	<div class="right" > I made a <td class="video" > added this to css: .video { BACKGROUND-COLOR: #448ccb; } Now it's up and down.. not too high and low.. but need to have it from left to right too.. so we're getting close. :D also if i delete the <br /> the breadcrums is hidden but its aligned good! than we will need to just get the blue to the left and right and have the video in the middle.. thanks for working with me.. :D  | 
	
		
 Re: resize youtube 
		
		
		
		Im just going to share with you the updated code: 
	Code: 
	<td valign="top" width="100%">and invite you to the page.. http://www.discountprintingnetwork.com/partner/ thanks!  | 
	
		
 Re: resize youtube 
		
		
		
		So there are 5 columns now and the floats are back. I'm not sure how to handle this. The image you've supplied has only 2-3 columns. 
	Is there going to be any text underneath?  | 
	
		
 Re: resize youtube 
		
		
		
		yes, I'm going to add text underneath all of this.. did you see the image I posted? also.. I dont have the floats in the css... 
	 | 
	
		
 Re: resize youtube 
		
		
		
		I tried to change the <td valign="top" width="100%"> to a <table valign="top" width="100%"> but it all messed up.. but maybe if you tell me where all the extra stuff is coming from.. we can delete it.. 
	 | 
	
		
 Re: resize youtube 
		
		
		
		I see where you got your  
	<td><td></td><td> (from the source..) but I even tried to open it up.. I added: <table> (everything we have now) </table> Didnt work..  | 
	
		
 Re: resize youtube 
		
		
		
		This is what you should be aiming for. This should go inside the central space provided it has a beginning TD and ending /TD outside of it.... 
	Code: 
	 | 
	
		
 Re: resize youtube 
		
		
		
		how can we delete the breadcrums from the main page only?! 
	 | 
	
		
 Re: resize youtube 
		
		
		
		locate something like this for breadcrumbs... 
	{include file="location.tpl"} and {* comment it out *}  | 
	
		
 Re: resize youtube 
		
		
		
		ok.. i'm going to try and do this.. maybe we can use tbody for this.. what do you think?! 
	or maybe I can try and put it in here: {$lng.txt_welcome_to_the_partners_zone_note}  | 
	
		
 Re: resize youtube 
		
		
		
		actually, I think putting it in a language variable helped out a lot!!!! 
	 | 
	
		
 Re: resize youtube 
		
		
		
		Did you try the table and put it inside the central space from post number 28 http://forum.x-cart.com/showpost.php?p=213985&postcount=28 
	It will save you a lot of headaches (below the breadcrumb row has been removed). Code: 
	<!-- central space --> | 
	
		
 Re: resize youtube 
		
		
		
		I figured out the problem with .right.. its in the .css for example if i change .object embed the table actually resizes accordinally. how can we fix that?!? 
	/* partner main page */ .left { position: absolute; border: 1px; margin-left: 5px; } .right { border: 1px; height: 1px; } .object embed { height:170px; width:250px; } .video { BACKGROUND-COLOR: #448ccb; }  | 
	
		
 Re: resize youtube 
		
		
		
		Also get rid of the... 
	<p align="justify"> </p> so the table can be closer to the top.  | 
	
		
 Re: resize youtube 
		
		
		
		I just went with what you helped.. I think this just did save me another day.. thank you so much! 
	 | 
	
		
 Re: resize youtube 
		
		
		
		Also remember: if you're going to change the dimensions of the object, you'll also have to change the dimensions within the embed as well. 
	 | 
	
		
 Re: resize youtube 
		
		
		
		Give the outer lying table that contains the image and vid a width of around 690. And that should get you closer to the image. 
	 | 
	
		
 Re: resize youtube 
		
		
		
		Hey, the bottom.. where the text is. how can I made that one td not two?! 
	 | 
	
		
 Re: resize youtube 
		
		
		
		Within the the 3 TRs you have created put  a colspan="2" in each single TD. 
	for example... <tr> <td colspan="2"><h1><center> Your Header </center></h1></td> </tr> <tr> <td colspan="2"><strong> Your Welcome Txt </strong></td> </tr> <tr> <td colspan="2"> Your UL's </td> </tr>  | 
| All times are GMT -8. The time now is 10:14 PM. | 
	Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.