How To Add Video Background In Net web site Using HTML And CSS Step By Step Tutorial

Blog Postes


Hi there guys welcome encourage to but one more video of easy tutorials today on this video we’ll tag a web purpose with background video it is doubtless you’ll perhaps look here i grasp created a web purpose header piece and on this one i grasp added a video in the background that’s playing automatically and here we’ve got this title and on this title it is doubtless you’ll perhaps look this fly build when.

I bewitch cursor over this text the text colour becomes clear and likewise it is doubtless you’ll perhaps look most productive a stroke on this text sooner than starting this video i’d esteem to thanks bluehost for sponsoring this video bluehost is terribly factual web purpose to rob enviornment title and web cyber web hosting in case you rob a web cyber web hosting from bluehost you would also safe the free ssl certificate free search engine optimization.

Tool and free cdn in case you are going to rob web cyber web hosting for one one year you would also safe the free enviornment title also in any of the win cyber web hosting diagram you safe the ssd storage which is terribly quick and likewise you safe the unmetered bandwidth it approach there will most likely be no bid with the visitors it is doubtless you’ll perhaps force any resolution of visitors on your web purpose and your web purpose will most likely be.

Always up and working here you safe the free ssl safety i will build the bluehost hyperlink in the video description so that it is doubtless you’ll perhaps come on this web purpose in a single click on and start building your web purpose in case you don't know develop your web purpose with bluehost i grasp devoted video on this one the save it is doubtless you’ll perhaps learn the contrivance in which to develop and.

Post your web purpose in barely few minutes you would also win that video hyperlink also in the description now let's start this video here on this folder i grasp added one index.html file and elegance.css file here i grasp one more folder known as photos and on this one it is doubtless you’ll perhaps look i grasp one.

Imprint and one video you would also win this logo and video win hyperlink in the video description subsequent i will start this html and css file with my code editor which is visible studio code so here’s the html file the save i grasp added the a actually mighty html structures and here’s the css file.

And here i grasp added the hyperlink mark to build html and css file subsequent we are in a position to add code in the physique mark that will most likely be displayed on our web sites so on this physique we are in a position to tag a div with the class title hero subsequent we’ve got to add the css so staunch reproduction this class title write it here.

And here we’ve got to add width and high so the bits will most likely be 100 p.c let's add the tip 100 vh after that we are in a position to add the background let's add the background portray linear gradient and here we are in a position to add two colour code so here’s the first colour code let me add a comma here and paste again.

So here’s the linear gradient colour in the background and after that we are in a position to add situation relative let's add some padding display mask will most likely be flex align objects center and account for enlighten material center so that we are in a position to add text inner this tip that will most likely be displayed in the heart of the webpage.

After adding this let's come encourage to the folder and start this html file with any web browser now it is doubtless you’ll perhaps look this undeniable colour on the whole web sites let's come encourage to the html file and here we are in a position to add a nav mark and inner this nav let's add one portray.

Write the file course photos prick logo it is logo.png and write a class title known as logo after that we are in a position to add ul mark and li for the checklist on this li we are in a position to add a mark so that this would perchance be a clickable hyperlink and here we are in a position to add the hyperlink text so it is house.

Let's reproduction it and alternate the hyperlink text after updating this let's refresh the win purpose again now it is doubtless you’ll perhaps look this logo and these hyperlinks in the heart of the web sites subsequent we’ve got to alternate its situation and we are in a position to align it facet by facet let's come encourage.

And reproduction this nav for the snap we are in a position to add width that can even be 100 and situation will most likely be absolute high 0 left 0 then we are in a position to add some padding display mask will wave flex.

Align item center account for enlighten material purpose between subsequent we’ve got to alternate the scale of this logo then this nav we’ve got added portray with the class title logo so here let's add the logo class title and space the width so width will most likely be 80 pixel so that logo will most likely be little after this logo it is doubtless you’ll perhaps look we’ve got added the checklist.

In uli and a mark so let's come encourage and here we are in a position to add nav ulli checklist vogue will most likely be none then we are in a position to add display mask this would perchance be inline block and after that we are in a position to add some purpose from the left facet so here we are in a position to.

Add margin from the left facet it is 40 pixel now it is doubtless you’ll perhaps look these menu esteem this it is facet by facet now we’ve got to alternate the colour and engage this underline let's come encourage and paste it again then write a for the anchor mark.

Right here we are in a position to add text decoration none then we are in a position to alternate the colour and we are in a position to also alternate the font dimension after updating this again refresh the win purpose and now it is doubtless you’ll perhaps look these text in white colour after adding this let's come encourage and.

In this html file after closing of this nav mark here we are in a position to tag but one more div with the class title enlighten material and inner this enlighten material we are in a position to add a title in h1 and then we are in a position to add a hyperlink with a mark it is doubtless you’ll perhaps look this text here and this hyperlink.

Explore staunch reproduction this class title enlighten material write it here here we are in a position to add text align center again write this class title and here we are in a position to add css for the title which is in the h1 so we’ve got to amplify the font.

Measurement this would perchance be 160 pixel and after that we are in a position to add the colour colour will most likely be white and let's add the font weight will most likely be 600. subsequent we are in a position to add the an identical class title dot enlighten material and a for the hyperlink here we are in a position to add the text situation none then we are in a position to add display mask display mask will most likely be.

Inline block and let's alternate the colour colour will most likely be white and let me add the font dimension of 24 pixel so that the button text colour will most likely be natty then we are in a position to add some.

Border so here we are in a position to add border of two pixel stable and colour will most likely be white let's add some padding this would perchance be 14 pixel from high and bottom and 70 pixel from left and lawful facet after that we have to add the border radius so that the corner will most likely be spherical.

Let's add the border radius of 50 pixel and some margin from the tip after updating this again refresh the win purpose and now it is doubtless you’ll perhaps look this text here and below this text it is doubtless you’ll perhaps look this button detect so we’ve got added the whole contents on.

This webpage subsequent we’ve got to add a video in the background of this webpage so let's come encourage and come to the html file staunch above this nav mark here we are in a position to add some purpose and let's add a video with video mark video esteem this video start and shutting mark.

Right here we are in a position to add autoplay then we are in a position to add loop then muted and spot inline so sooner than this closing video mark here we are in a position to add supply then src.

And on this one we’ve got to add the file course of the video so let's come encourage to the folder and likewise it is doubtless you’ll perhaps look the folder title is photos and on this folder we’ve got the video known as video dot mp4 here we are in a position to add photos prick.

Video dot mp4 esteem this and after that we are in a position to add form form will most likely be video prick mp4 that's it after updating this again come encourage to.

The win page and now it is doubtless you’ll perhaps look this video is playing over here but it absolutely is now not at the lawful situation so we’ve got to space its situation and this would perchance be displayed in the background of this web sites so staunch come encourage and here on this video mark we are in a position to add a class title let's add the class title encourage video.

Cherish this staunch reproduction this class title write it here in the css file here we are in a position to add the placement so the placement will most likely be absolute lawful 0 and bottom zero.

Z index will most likely be minus one now it is doubtless you’ll perhaps look the staunch situation for this portray but the scale is now not finest so we’ve got to add the facet ratio so that this would perchance be responsive for all display mask mask dimension let's come encourage and here we are in a position to add at the date media.

Min facet ratio 16 prick 9. here we are in a position to add dot encourage video width will most likely be 100 and high auto staunch reproduction this one.

And here we are in a position to alternate it as max facet ratio which is maximum facet ratio and the width will most likely be auto and high will most likely be 100 that's it.

After updating this let's refresh the win purpose again now it is doubtless you’ll perhaps look the video dimension is more healthy to this display mask mask dimension subsequent we’ve got to add the fly build on this title for that allow's come encourage and likewise it is doubtless you’ll perhaps look we’ve got added the css for this title enlighten material dot h1 so here most productive we are in a position to add.

Dot enlighten material h1 fly esteem this and on this one we are in a position to add webkit text stroke to pixel and this would perchance be white colour.

Then we are in a position to add colour so the colour will most likely be clear we’ve got added webkit text stroke to pixel and white colour colour is evident and on this one here we are in a position to add transition transition will most likely be 0.5 seconds that's it after updating this code let's refresh.

The win purpose again and now it is doubtless you’ll perhaps look when i bewitch cursor over this text the text colour becomes clear and likewise it is doubtless you’ll perhaps look the stroke for these text so we’ve got done this web sites with background video i hope this video will most likely be indispensable for you in case you’ve gotten got any query it is doubtless you’ll perhaps build a matter to me in the commentary.

Fraction please esteem and piece this video and likewise subscribe my channel easy tutorials to mosey seeking more videos esteem this one thanks so powerful for staring at this video

Sharing is caring!

DZ4Team

DZ4Team is a Web development team, We offer all types of scripts, installing, supporting and hosting. Contact Us: https://fb.com/DZ4TeamSupport

https://dz4team.com

Leave a Reply