Change the size of embedded videos on every page

Discussion in 'HTML & Website Design' started by PunPryde, Aug 13, 2009.

  1. #1
    I have a site with around 100 pages of different embedded videos (all currently varying in size) but i would like to sort of develop a standard and keep them all one size. So my dilemma is that i do not want to go through 100 pages and edit all their sizes. Is there anyway through PHP, CSS or anything else that can change them all without manually changing every single one?

    Thanks
     
    PunPryde, Aug 13, 2009 IP
  2. Hoxxy

    Hoxxy Active Member

    Messages:
    155
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #2
    By adding CSS ...
    embed { width:500px;height:500px;}
    Code (markup):
    If that does not work try this:
    embed { width:500px !important;height:500px !important;}
    Code (markup):
     
    Hoxxy, Aug 14, 2009 IP
  3. PunPryde

    PunPryde Peon

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    it worked! thank you so much! that will save me lots of time...

    oh just one more thing, i also have chatboxes on my site that use the <embed> tags... how would i make it so these are excluded from being changed in size?
     
    PunPryde, Aug 14, 2009 IP
  4. Hoxxy

    Hoxxy Active Member

    Messages:
    155
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #4
    Give them a seperate class:
    embed[COLOR="Red"].chatbox[/COLOR]{ width:500px;height:500px;}
    Code (markup):
    then find your chat boxes and add:
    class="chatbox"
    Code (markup):
    just inside the tags.
     
    Hoxxy, Aug 16, 2009 IP