1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Conceal Top Of Youtube Video With Html/iframe?

Discussion in 'HTML & Website Design' started by Cyrus255, Feb 19, 2013.

  1. #1
    I saw a site where the black bar with text at the top of every youtube video is concealed. Can anyone tell me how to do this? I checked their source and couldn't find anything (probably in the CSS or something).

    I tried putting the youtube iframe within an iframe and cutting the height but that didn't work. Any help would be super appreciated! I'm sure it'd be useful to lots of people, as without that black part people will be less likely to click the video and leave the site to go to youtube (a big problem for many sites that could be cut down on by concealing the top part).

    Thank you for any help!
     
    Cyrus255, Feb 19, 2013 IP
  2. COBOLdinosaur

    COBOLdinosaur Active Member

    Messages:
    515
    Likes Received:
    123
    Best Answers:
    11
    Trophy Points:
    95
    #2
    And the link to that site is?
     
    COBOLdinosaur, Feb 19, 2013 IP
  3. Cyrus255

    Cyrus255 Well-Known Member

    Messages:
    796
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    150
    #3
    http://www.learnliberty.org/content/myth-rational-voter
    This site covers the top for example.

    It's probably in their css or something but I was just asking how to do this? Maybe using tables or iframes or something? Please give me an example code, using any random youtube video.
     
    Cyrus255, Feb 19, 2013 IP
  4. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #4
    scottlpool2003, Feb 20, 2013 IP
  5. Cyrus255

    Cyrus255 Well-Known Member

    Messages:
    796
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    150
    #5
    My goal is not to float a div over the video as in that tutorial, but rather to cut off the video completely as is done on the learnliberty.org videos.

    Nevermind I found it in his CSS.
     
    Cyrus255, Feb 20, 2013 IP
  6. Cyrus255

    Cyrus255 Well-Known Member

    Messages:
    796
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    150
    #6
    Well even after copying it, it seems to no avail, it's too complex for me to locate what allows his div box to cut off the top part of the video.

    Could someone make a simple example?
     
    Cyrus255, Feb 20, 2013 IP
  7. cesurasean

    cesurasean Active Member

    Messages:
    269
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #7
    Maybe some kind of javascript code on top of it......
     
    cesurasean, Feb 20, 2013 IP