The Lensmaster Lounge

Where lensmasters know best. W00t.

submit a bug report

You are not logged in.

Announcement

*The Forum Rules.

Yep, rules. Read 'em. Abide by 'em. Or your sea creature powers may be revoked. Temporarily, or for good.

1. New to the lounge? Get started here. Learn which category to post your note in, and create a forum signature.
2. Spam: just don't do it. Thou also shalt not fill the forums with multiple threads on the same topic or sockpuppet.
3. Thou shalt not flame, harass, denigrate, spam, malign, or otherwise finger-point and name-call at ANYONE. This one's a biggy. This too can get you banned.
4. Squidstaff love interacting with smart front-line people, so they stop by the forums from time to time to hear your ideas and share updates. However, this isn't the place to post bugs or solicit admin action. Please send those requests through our feedback link.
5. The SquidU forum is a place for users to interact, to share ideas and inspiration (and yes, gripes... maybe another lensmaster can help) and have fun with their lenses. Try searching for an answer or visiting The Answer Deck.

#1 07/14/2008 7:59 pm

Treasures-By-Brenda
Wow. Over 1000 posts.
From: Ottawa Ontario Canada
Registered: 12/31/1969
Posts: 1095

Youtube Videos

Hello again, Squid-Veterans.

Can anyone tell me if it is possible to center a Youtube video on the page? The post-it notes and the polaroid modules are all nicely centered and look great. I think it would be much more attractive if the Youtube Modules in my lens Your Life Sentence in Six Words were also centered.

I would love to hear Your Life Sentence, too!

Thanks!
Brenda

Last edited by Treasures-By-Brenda (07/14/2008 8:03 pm)

Offline

 

#2 07/14/2008 8:34 pm

Rock_The_Ice
Wow. Over 1000 posts.
From: Manchester (UK)
Registered: 12/31/1969
Posts: 1009

Re: Youtube Videos

Unless one of the lensmasters with more coding knowledge than myself can suggest an alteration to the YouTube Module then I'm afraid there's nothing you can do. As far as I know you can't centre it.

You may be able to balance it out by using a description, rating and view time though?

Offline

 

#3 07/15/2008 2:11 am

Cinetech
Wow. Over 1000 posts.
From: Montreal
Registered: 12/31/1969
Posts: 1471

Re: Youtube Videos

Treasures-By-Brenda wrote:

Hello again, Squid-Veterans.

Can anyone tell me if it is possible to center a Youtube video on the page? The post-it notes and the polaroid modules are all nicely centered and look great. I think it would be much more attractive if the Youtube Modules in my lens Your Life Sentence in Six Words were also centered.

I would love to hear Your Life Sentence, too!

Thanks!
Brenda

No, unfortunately you can't. However, if the description of the video add to your lens,
I would include it, making the uncentered Youtube video less obvious.
See more YouTube resources here.

Offline

 

#4 07/15/2008 2:57 am

thefluffanutta
Citizen Squid Alumni

From: York, England SquidUtils.com
Registered: 09/04/2006
Posts: 5505

Re: Youtube Videos

Yes, you can center a YouTube module, but it requires some very cunning CSS.

The width of the lens is 620 pixels, and the YouTube module is 300x247 pixels. If you squeeze a floating paragraph which is 150x247 down the left of the module, you can shift it over so that it appears to be in the middle. Something like this in the module's description will do the trick:

Code:

<p style="float: left; width: 150px; height: 247px;">&nbsp;</p>

I hadn't actually tried this myself before now, so I tried it on one of my lenses - it works a treat!

I do something very similar on my CHUCK lens, where I have inserted an image to the left of the video. I had to remove all title, description and details from the options though (annoyingly, these reappear every time you edit the module).

I have also used this kind of trick to replace the video description with something else, either my own review or some Amazon links (as I did on my Wii Games lens).

smile

Offline

 

#5 07/15/2008 4:52 am

Rajays
Full fledged kraken (500+ posts)
From: Bangkok, Thailand
Registered: 12/31/1969
Posts: 618

Re: Youtube Videos

Thats a nifty trick fluff. Thanks. Got to save this code for later.

Offline

 

#6 07/15/2008 4:54 am

Treasures-By-Brenda
Wow. Over 1000 posts.
From: Ottawa Ontario Canada
Registered: 12/31/1969
Posts: 1095

Re: Youtube Videos

Brilliant...thank you very much!  It has sure cleaned up my lens, Your Life Sentence in Six Words nicely!  It will take a few more minutes to apply it to my other lenses...

Brenda

Offline

 

#7 07/15/2008 5:10 am

Cinetech
Wow. Over 1000 posts.
From: Montreal
Registered: 12/31/1969
Posts: 1471

Re: Youtube Videos

Treasures-By-Brenda wrote:

Brilliant...thank you very much!  It has sure cleaned up my lens, Your Life Sentence in Six Words nicely!  It will take a few more minutes to apply it to my other lenses...

Brenda

It looks great Brenda, it definitely looks aesthetically better.
Great trick for those who like to center her or his content.
Rock can include this trick in his YouTube module lens.

Offline

 

#8 07/15/2008 5:55 am

Rock_The_Ice
Wow. Over 1000 posts.
From: Manchester (UK)
Registered: 12/31/1969
Posts: 1009

Re: Youtube Videos

Cinetech wrote:

Treasures-By-Brenda wrote:

Brilliant...thank you very much!  It has sure cleaned up my lens, Your Life Sentence in Six Words nicely!  It will take a few more minutes to apply it to my other lenses...

Brenda

It looks great Brenda, it definitely looks aesthetically better.
Great trick for those who like to center her or his content.
Rock can include this trick in his YouTube module lens.

It's going in soon, Cinetech!

Nice one, Fluff!

Offline

 

#9 07/15/2008 5:59 am

thefluffanutta
Citizen Squid Alumni

From: York, England SquidUtils.com
Registered: 09/04/2006
Posts: 5505

Re: Youtube Videos

I've also added it to my CSS Tricks.

Offline

 

#10 07/15/2008 8:12 am

JustBonCrochetDesigns
Giant Squid Greeter
From: Akron, OH
Registered: 01/04/2007
Posts: 526

Re: Youtube Videos

One of those questions I've been meaning to ask for a long time...Thanks Fluff for the info smile

Offline

 

#11 07/15/2008 8:16 am

thefluffanutta
Citizen Squid Alumni

From: York, England SquidUtils.com
Registered: 09/04/2006
Posts: 5505

Re: Youtube Videos

Thanks to Brenda for asking the question - I hadn't even thought about centering the video before, and it is an excellent idea.

Offline

 

#12 10/10/2008 1:22 pm

RichMann
Cuttlefish. Just browsing.
From: Washington
Registered: 01/12/2008
Posts: 8

Re: Youtube Videos

This is exactly what I was looking for thefluffanutta Thanks so much

Offline

 

#13 10/10/2008 3:16 pm

Treasures-By-Brenda
Wow. Over 1000 posts.
From: Ottawa Ontario Canada
Registered: 12/31/1969
Posts: 1095

Re: Youtube Videos

Yes, it is great -- all my videos are centered now and I love it!

Brenda

Offline

 

#14 10/11/2008 11:52 am

Ghazgrim
Got yer sea legs
Registered: 12/31/1969
Posts: 69

Re: Youtube Videos

thefluffanutta wrote:

Yes, you can center a YouTube module, but it requires some very cunning CSS.

The width of the lens is 620 pixels, and the YouTube module is 300x247 pixels. If you squeeze a floating paragraph which is 150x247 down the left of the module, you can shift it over so that it appears to be in the middle. Something like this in the module's description will do the trick:

Code:

<p style="float: left; width: 150px; height: 247px;">&nbsp;</p>

I hadn't actually tried this myself before now, so I tried it on one of my lenses - it works a treat!

I do something very similar on my CHUCK lens, where I have inserted an image to the left of the video. I had to remove all title, description and details from the options though (annoyingly, these reappear every time you edit the module).

I have also used this kind of trick to replace the video description with something else, either my own review or some Amazon links (as I did on my Wii Games lens).

smile

Very nice. Gonna have to try it out.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson