Dynamic Resize Video Content [PHP/CSS]

Discussion in 'PHP' started by podda999, Nov 13, 2009.

  1. #1
    Hi i was just trying to figure out a way of resizing a video dynamically without having the change the dimension and so it fits within the post box and can be re-sized automatically dependent on resolution

    I can do this by manually changing the width dimension to 100% within the actual embed code, but i cant seem to find out how to hard code it into the CSS or PHP so that it says: Oh hai your a video your width should be 100% not x amount of pixels.

    I found the

    .post embed, object {
    width: 100%
    height: 100%

    but had no luck getting this working. Thanks a lot.
     
    podda999, Nov 13, 2009 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    mastermunj, Nov 13, 2009 IP
  3. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There are many different ways to do this, how is a video being added is it a user just plonking the full embed code in? Can the video be from different locations or are they just YT videos?
     
    wd_2k6, Nov 14, 2009 IP
  4. podda999

    podda999 Greenhorn

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    Videos from mega video and myspace etc. So not just one source, and we post the videos but we use a wordpress theme but the videos do not fit in the box of the theme. We already have 11,000 videos so we dont want to re post them. We need a quick and easy way of doing this.
     
    podda999, Nov 22, 2009 IP
  5. osliaaa

    osliaaa Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'm not sure for exact solution, but had no luck getting this working
     
    osliaaa, Nov 23, 2009 IP