Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] trouble adding responsive embedded content on codrops tutorial demo

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #42292
    user2015864
    Member

    i’ve read the article about responsive video embedding on css-tricks. but it doesn’t completely work with this demo i found on [tympanus/codrops](http://tympanus.net/codrops/2012/06/12/css-only-responsive-layout-with-smooth-transitions/ “”)

    reading the comments from the post i believe a lot of people have the same problem adding media and it showing up with the smooth scroll template

    visit my site to see what i’ve done till now [levelunion.com](http://levelunion.com )

    hope to start a open discussion, i’m new to coding and design and have to many questions

    #122500
    Andy Howells
    Participant

    From the look of it the video is responding when reducing the width but you haven’t positioned it to the center or made it a bigger width than 600px.

    You need to add margin: 0 auto; to center it, and/or if you want to stretch it out adjust the width on your .video-wrapper

    A good bit of JS I use (which was made by @chriscoyier and Dave Rupert) is [Fitvids.js](http://fitvidsjs.com/)

    #122502
    user2015864
    Member

    Hey Andy that was a quick response.
    just made a demo on [codepen](http://cdpn.io/rJugi “”)

    could you explain to me which class you for the margin
    i have the video wrapper set on 100%

    appreciate your help

    #122503
    user2015864
    Member

    andy i’m sorry it works.

    thank you so much

    #122505
    user2015864
    Member

    i have another question concerning the video embed.
    i doesn’t seem it totaly works.

    only when changing the size of the browser the video shows.
    in fully opened browser when scrolling to the video embed section the panel stays black and/or when playing the video only sound is in playback the video not.

    still hoping that somebody is around to help or else can someone guide me to an easy explanation of css3 with a quick learning curve ;-)

    #122543
    user2015864
    Member

    still working on the same issue as yesterday. but included fitvid.js instead of the css hack.
    my video wrapper is black instead of showing the vid.
    see http://cdpn.io/rJugi for current code.

    i’ve read many articles on css positioning because i believed there was a conflict. with that. but it doesn’t seem the case

    #122749
    user2015864
    Member

    i’m getting a long i’ll update my codepen in a few days

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.