Full Screen Background Image with HTML CSS | Responsive Full Page Background Image CSS

Поділитися
Вставка
  • Опубліковано 1 січ 2025

КОМЕНТАРІ • 275

  • @dejihassan5573
    @dejihassan5573 2 роки тому +53

    never seen a video so short,concise and straight to the point like this ever .Thank You!!

    • @bopatzable
      @bopatzable 2 роки тому +1

      fully agree. this video is really helpful.

  • @raves_r3177
    @raves_r3177 3 роки тому +55

    I dont usually leave a comment but I feel like I have to in this video because you have helped me a lot. I have a web design project due a few days from now but I have no idea how to do a full screen image. You sir, just saved my grade. Thank you very much for this video and for the patience of explaining what a "vh" is. Your quality of teaching and content is worth a million subs. Again, thank you very much. Subscribed.

    • @cemeygimedia
      @cemeygimedia  3 роки тому +4

      Glad I could help! Thank you for your nice thoughts 👍

    • @worldlyjourney
      @worldlyjourney 2 роки тому

      You are right. After watching this video, I decided to watch another video from a different UA-camr to compare the. Explanation. But I came back to this account to watch all his videos. You explain things in a simple and meaningful way. It Is hard for me to leave a comment but today I did

  • @nataliestepp5916
    @nataliestepp5916 2 роки тому +7

    I've been struggling for 2 hours trying to research how to do this! Thank you so much for posting this!

  • @LisekGG
    @LisekGG 2 роки тому +237

    Pro tip: If you want the image to be centered vertically and horizontally add line: *background-position: center center;*

  • @Disciple1963
    @Disciple1963 Рік тому +2

    As a non-native English speaker I'd like to point out your great English pronunciation and thanks a million for it!
    And also thanks a lot for extremily clear explanation of the subject!
    Like and subscribe!

  • @clauclaudia6855
    @clauclaudia6855 2 роки тому +4

    Wowww, thanks a lot , I had around 5h watching videos and I didn't manage to change the size of the img, and with 5 min your video I manage to do it XD, great explanation!!

  • @leahlilyrose
    @leahlilyrose 2 роки тому +1

    Omg THANK YOU SO MUCH MAN! I have a project and the background image was irritating me 😭 you are a life saver, you earned a sub!

  • @thebrainykids
    @thebrainykids Рік тому

    Exceptional Turkish accent. Lovely. Thanks for this !!!

  • @Memes4eva_4u
    @Memes4eva_4u Рік тому

    the other vids had repeating background. THIS IS PERFECT! tysm!

  • @ananyamitra8717
    @ananyamitra8717 Рік тому

    I don't usually leave any comment but had to say this....thank you so much u made the perfect time saving straight to the point video ❤️

  • @feality8697
    @feality8697 Рік тому +1

    This guy is the key! This is what I was looking for! straight to the point

  • @alizabatool1928
    @alizabatool1928 2 роки тому

    i never understood from yt how to adjUst bgimg not even commented on someone channels
    but i make it easy sir THANK YOU SIR! LOTS OF BLESSINGS FOR YOY SIR FROM PAKISTAN !

  • @abbosshodiev1699
    @abbosshodiev1699 Рік тому +1

    Straight-to-the-point tutorial. Good job!

  • @francesshakinahtinarimas523
    @francesshakinahtinarimas523 3 роки тому +7

    This help me a lot for my pt. Thank you so much for sharing this!

  • @JenniferPerez-no7ih
    @JenniferPerez-no7ih Рік тому

    Hi cem, from London, I must said that i start doing a webite, and i was struggling to find out how to cover the full page of the background with an Img, and your video just fixed my problems!!! Thank you :)

  • @mikson6905
    @mikson6905 Рік тому

    Thank you mister Cem Eygi, you saved my life

  • @Chiby
    @Chiby Рік тому

    Thanks man you just solved a 3days problem for me under 5mins

  • @vkmuffins
    @vkmuffins Рік тому

    My head was about to burst until I found ur video 😖😖
    Thanks thanks thanks a million times !!!!!!

  • @matthewbarhou
    @matthewbarhou 2 роки тому +1

    How do I add text over the image? My h1 and p elements show text but they have a white background taking up the screen horizontally

  • @sonubhardwaj9284
    @sonubhardwaj9284 Рік тому

    finally in this video i get that individually div tag has no height and width thank you.

  • @SampaChileshe-ox1jh
    @SampaChileshe-ox1jh 6 місяців тому

    Wonderfull explanation 👏👏👏

  • @onyegbulegodson168
    @onyegbulegodson168 2 роки тому

    Thank you man
    This took me hours to figure out

  • @katta2116
    @katta2116 2 роки тому +3

    I have a question about it. When you went to mobile size, the image was showing just half. how to avoid it? like have it appear the same irrespective of whatever size the screen is?

  • @mrssai2338
    @mrssai2338 3 роки тому +2

    I liked the way you explained, esp. viewport part...Great!!! subscribed already!

  • @Filderson
    @Filderson 6 місяців тому

    Thanks bro
    I have struggled for 2wks thanks 👍

  • @veyselaksoy3470
    @veyselaksoy3470 2 роки тому

    Thank you. your English is so clear

  • @boriztsuyoshi9480
    @boriztsuyoshi9480 2 роки тому

    Thank you i was searching for this syntax for like forever

  • @STEV_-
    @STEV_- 10 місяців тому

    thank you for the knowledge🙏🙏🙏

  • @dandi2482
    @dandi2482 3 роки тому

    thank you!! everything is sooo clear, love ya

  • @fighter8931
    @fighter8931 Рік тому

    I solved my problem from your video. thanks a lot

  • @treazz6868
    @treazz6868 2 роки тому +1

    Çok yardımcı oldun reis. Abimsin sevgiler...

  • @danielroach1019
    @danielroach1019 2 роки тому +3

    How do you make it so text actually goes on top of the image though, instead of below it.

    • @silentt2143
      @silentt2143 2 роки тому +1

      Instead of the div class, write the background-image, background-size, background-repeat, and height properties within your CSS body tag.

    • @dawnstar24
      @dawnstar24 2 роки тому

      For hero image or likes, make a div, name it parent div, set it's position to relative, add any text tag and another div inside it which will contain our image. Set the image div to its maximum height and width which will be the size of the parent div and also make the position of image div to absolute, this way your text will be in middle. And you can align it using flex. Or set your text tag to absolute so you can use float or any property to set it's position. Though it's not responsive in this case so I don't really recommend it.

  • @aquagamer352
    @aquagamer352 9 місяців тому

    Thank you so much, i really hope this works, i have high hopes, anyways thanks for the tuto! nice explaination and everything!! :DDD

  • @kennedyjunior567
    @kennedyjunior567 4 місяці тому

    SHORT AND CONCISE VIDEO.THANKS DO MORE VIDEOS

  • @krishnabhat9307
    @krishnabhat9307 2 роки тому

    thanks man you saved me:) I have a major project presentation tomorrow thanks❤❤

  • @krrish7508
    @krrish7508 Рік тому

    Worked for me, thanks a lot!

  • @overdrive112
    @overdrive112 Рік тому +2

    already the first step with the link wont work for me

  • @baryalaiahmad2568
    @baryalaiahmad2568 2 роки тому

    Best way of teaching,thanks.

  • @MattiBoustedt
    @MattiBoustedt 2 роки тому

    Thank you! Saved me!

  • @ObaiAtaya-b1q
    @ObaiAtaya-b1q 3 місяці тому

    i dont like to comment but this video really deservers the effort

  • @codegen2.O
    @codegen2.O 2 роки тому

    Short, simple and to the point. Thanks!

  • @_Elrz
    @_Elrz 2 роки тому +1

    When i put vh...image will not be display why please help me?

  • @Mroggg
    @Mroggg 3 роки тому +1

    How can I insert a text on it and change the opcity of the background without affects the text?

  • @filmbricks-stopmotion
    @filmbricks-stopmotion 2 роки тому

    Tysm, this helped me so much more my project.

  • @OkekeFavour-g8q
    @OkekeFavour-g8q 3 місяці тому

    This was really helpful

  • @jayeshgaikwad3373
    @jayeshgaikwad3373 2 роки тому

    Thank you man .. Really needed that one... Please make more n more....

  • @shubhransubiswal5182
    @shubhransubiswal5182 2 роки тому

    Ur the best dude keep it up👍

  • @gunturmaulana6956
    @gunturmaulana6956 10 місяців тому

    thankyou so much mate:)
    it work

  • @kiranshinde03
    @kiranshinde03 2 роки тому +1

    A very big thank you sir...😍😊🙏

  • @seandorig1955
    @seandorig1955 Рік тому +3

    Thank me later! (I know is pissing when someone doesnt put the code in description so i made here just copy it :D )
    {
    margin: 0;
    padding: 0;
    }
    .background-image {
    background-image: "source";
    background-size: cover;
    background-repeat: no-repeat;
    width: 200px;
    height: 100vh;
    }

  • @themichael8767
    @themichael8767 Рік тому

    Thank You very much, Sir!)

  • @omara1091
    @omara1091 2 дні тому

    great job 👍

  • @joshuaola-oluwa7777
    @joshuaola-oluwa7777 2 роки тому +1

    Thanks for explaining well but what if i want to put the image in the body tag

  • @bahauddinchishte
    @bahauddinchishte 2 роки тому

    This saves my day, Thanks a lot!

  • @makechallengeseasy6225
    @makechallengeseasy6225 Рік тому

    Thank you so much dear you solved my very big problem

  • @DavranbekSabirbayev
    @DavranbekSabirbayev 2 роки тому +1

    You created a new div after that you wrote there , what about writing them in body section like body {}

  • @edikandesolution
    @edikandesolution Рік тому

    I have problem with video link . When I copied it and run . It refuse to work. I need your help

  • @ronitbhatia1298
    @ronitbhatia1298 2 роки тому

    Thank You for the tutorial...🙂

  • @dxdworld3666
    @dxdworld3666 2 роки тому

    thanks at this time

  • @fitzysbaby2677
    @fitzysbaby2677 3 роки тому

    thanks, i was using a different method which didnt like extending the image height wise, this is perfect !

  • @quantumworld854
    @quantumworld854 2 роки тому

    great wee video - help me lots. thank you very much

  • @Electroses
    @Electroses Рік тому

    How would you put it behind text?

  • @fedeb2241
    @fedeb2241 2 роки тому

    Just what i was looking for, thanks!

  • @zuhaibulhassan.
    @zuhaibulhassan. 2 роки тому

    Thank You so much man very helpful video 100% recommended video concise and straight to the point

  • @DinithG1008
    @DinithG1008 2 роки тому

    Thanks.worked for me.!

  • @indranilgoswami1500
    @indranilgoswami1500 Рік тому

    Thanks sir ..It helped me alot .

  • @redigirma
    @redigirma 2 роки тому

    loved it, thanks!

  • @Cocolemon-pk6on
    @Cocolemon-pk6on 2 роки тому

    this didnt work for me idk why. how can you add this to a style sheet instead? It's like nothing happened. No image shows up at all. I already had some elements on my website done though.

  • @lonelym4ge
    @lonelym4ge Рік тому

    what icon and theme u use for vscode?

  • @swapnil72
    @swapnil72 11 місяців тому

    After doing all that can we add text over that background image??

  • @siegfriedcrypto
    @siegfriedcrypto 3 роки тому +1

    Great stuff. Thanks.

  • @strycinek
    @strycinek 2 роки тому

    Thanks man. It was very helpful

  • @andrewdavidov5618
    @andrewdavidov5618 3 роки тому

    Wow Awesome! Thanks a bunch!

  • @irinamihai8645
    @irinamihai8645 2 роки тому +1

    what editor are you using?

  • @rahatshahid10
    @rahatshahid10 2 роки тому +1

    Thank you. It helped me a lot 😀

  • @Restin_J_face
    @Restin_J_face 2 роки тому +1

    Does it matter if the style is defined within or ?

    • @DavranbekSabirbayev
      @DavranbekSabirbayev 2 роки тому +3

      I usually write style in body section , but the most acceptable way is to write to special folder like main.css after that you should add the link to the html project

  • @enryu9724
    @enryu9724 Рік тому

    Thanks for the explication

  • @IAMHULKSUR
    @IAMHULKSUR 2 роки тому

    Helped me out a lot. Thanks buddy.

  • @yvannacello9655
    @yvannacello9655 Місяць тому

    Thank you so much❤

  • @all-rounder0777
    @all-rounder0777 2 роки тому

    Thanks sir this is very useful video

  • @Ig_shadowF
    @Ig_shadowF 2 роки тому

    thanku now i learn how to do

  • @Crosbyte
    @Crosbyte 3 роки тому

    Yup, imma just say that you're awesome teacher. Keep it going, subscribed!

  • @jeremyickes5699
    @jeremyickes5699 2 роки тому

    Thank you. This helped me a lot

  • @codingwithshiku4735
    @codingwithshiku4735 2 роки тому

    Thank you so much sir it helped me ❤️❤️❤️

  • @tejas6038
    @tejas6038 2 роки тому

    Thanks a lot man.

  • @Andyiinho
    @Andyiinho 2 роки тому

    Thanks, mate! This helped a lot, cheers

  • @iamyou6555
    @iamyou6555 2 роки тому

    You are a saviour!

  • @arijkhan9173
    @arijkhan9173 2 роки тому

    Can u add the margin and padding in ur css file instead of ur html file?

  • @elgaucho956
    @elgaucho956 2 роки тому

    very usefull bro, thanks a lot

  • @reenakingston9124
    @reenakingston9124 2 роки тому

    When I uploaded a image in chrome page it's blur it's not clear so what can I do

  • @SymbaraCamara
    @SymbaraCamara Рік тому

    How do I overlay text?

  • @themanwithabeard6468
    @themanwithabeard6468 2 роки тому

    I already done it and its succesful but sir how can I put texts in it? I kept puting texts yet it don't

  • @barcalona55
    @barcalona55 2 роки тому

    wow you explained it so well

  • @HenriethConnor-u2m
    @HenriethConnor-u2m Місяць тому

    Thank you so much.

  • @programmingworld5683
    @programmingworld5683 Рік тому

    Wonderful explanation

  • @FrannKavila
    @FrannKavila 2 роки тому

    Thank you. Is it necessary to put the width and height first? Why not go directly to?:
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;?

  • @anniemeenie
    @anniemeenie 2 роки тому

    Thank you this was so concise and well explained!! You saved me so much time

  • @ZEro-rn6vk
    @ZEro-rn6vk 2 роки тому

    what do you mean by save it?

  • @أكاديميةحمزة
    @أكاديميةحمزة 2 роки тому

    perfect lesson thank u sir

  • @-Corvo_Attano
    @-Corvo_Attano 2 роки тому +1

    Subscribed :)