Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
69
rated 0 times [  70] [ 1]  / answers: 1 / hits: 51923  / 12 Years ago, sun, november 4, 2012, 12:00:00

E.g. I have a link



http://img.youtube.com/vi/aOPGepdbfpo/0.jpg


for a youtube video thumbnail:



enter



And I would like to remove the black top and bottom border so I get a picture like this:



enter



Could it be done using PHP function javascript/jQuery or maybe youtube api itself?


More From » php

 Answers
10

Use it as a background image, center it and change height.



http://dabblet.com/gist/4012604



.youtubePreview {
background:url('http://img.youtube.com/vi/aOPGepdbfpo/0.jpg') center no-repeat;
height:204px;
width:480px;
}

[#82205] Friday, November 2, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
miles

Total Points: 256
Total Questions: 111
Total Answers: 104

Location: Benin
Member since Fri, Mar 24, 2023
1 Year ago
;