dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: How to input a video as a background of my webpage with html?

  1. #1
    Join Date
    Nov 2017
    Posts
    1

    How to input a video as a background of my webpage with html?

    before week ago i saw very cool site which use some video of Dubai as a background so i wonder how can i make it?i know about the <video> tag but when i put the link of the video between the tags doesnt work what need to do?

  2. #2
    Join Date
    Oct 2017
    Posts
    12
    Use style with z-index for video element (additionally fixed position for video and absoulte for content), basic example:
    #video {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    z-index: -10;
    }
    #content {
    position: absolute;
    top: 0;
    left: 0;
    }

  3. #3
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    5,528
    Nice as it sounds, its not the thing to push on to people and I know that people who develop these types of sites and eat a users data allowance or consider that their may be bandwidth constraints or the user is on a highly congested node with a very high contention ratio as often happens, I am suffering at the moment on my broadband, the ISP I use has suddenly sold a lot of broadband packages to the students in the area and suddenly I have gone from being able to watch 1080p down to around 240p and buffering.

    What you might want to consider is a slide show of images have some movement to them so that it looks like video (of sorts).
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  4. #4
    Join Date
    Dec 2017
    Posts
    1
    Using videos in the background on your website is good idea but video using your user data, although people use cdn networks to insert video on their website because they will play your video without buffering on your website for standard internet connection some of the cdn networks is cloudfare, maxcdn etc

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center