Keeping Footer at the Bottom of the Page (HTML & CSS)

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

ความคิดเห็น • 294

  • @chidoan7153
    @chidoan7153 2 ปีที่แล้ว +17

    Hands down the best solution for this problem! Thank you for ending my 3 hours of searching endlessly!

    • @CodingJourney
      @CodingJourney  2 ปีที่แล้ว +3

      Super! You can now proceed to solving the next problem 😉 All the best, keep coding 💙

    • @droneadventures.731
      @droneadventures.731 2 ปีที่แล้ว +4

      same here, even more hours :)

  • @mihirkumarchoudhury5489
    @mihirkumarchoudhury5489 4 ปีที่แล้ว +10

    Superb man! After watching almost 15 videos I landed here and to be honest it was totally worth it. Brilliant

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +3

      Oh thank you for the lovely comment!! Very glad you found this useful 🙂

    • @Roberto-ep5qd
      @Roberto-ep5qd 4 ปีที่แล้ว +1

      ​@@CodingJourney You're a genius... Thanks so much for sharing us this video. (Sorry for my bad english)

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      @@Roberto-ep5qd Oh thanks man! Very glad you like it 🙂 Keep coding!! 😉💙

  • @heatherfarnham3185
    @heatherfarnham3185 2 ปีที่แล้ว +2

    The first option works perfectly with long single page sites in all responsive breakpoints. Thank you so much!

  • @LunchBox77
    @LunchBox77 2 ปีที่แล้ว +6

    Great tutorial, one of the best and most straight to the point I have seen.

  • @alexandruboscu5094
    @alexandruboscu5094 4 ปีที่แล้ว +1

    I'm searching for this kind of video to resolve my problem with footer not sticking at the bottom for almost 3h, thanks man, you're great!!!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +1

      Oh thank you for the lovely message 🙏🙂 Very glad it helped! 💙

  • @derabelconcepts1250
    @derabelconcepts1250 2 ปีที่แล้ว +1

    Seriously bruh, thanks best Tutorial ever, thanks for ending my 4 hour long search , God bless, you have my subscribe and like for sure 😁

    • @CodingJourney
      @CodingJourney  2 ปีที่แล้ว

      Thanks mate! Huge love, keep coding! 🙂💙

  • @stevebdevn8942
    @stevebdevn8942 4 ปีที่แล้ว +12

    Awesome Tut! Thanks for covering multiple options, especially the sticky footer. Also, thanks for mentioning the Js snippet for automatic date updating! That's so handy!!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Amazing! Thank you for the nice words 🙂 Very glad you liked it!!

  • @kbsiva
    @kbsiva 4 ปีที่แล้ว +4

    Thank you! It's wonderful what a few bits of well written CSS can do. Love it.

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Totally agree, CSS rocks! 😉

  • @murtazamohseni4382
    @murtazamohseni4382 4 ปีที่แล้ว +1

    I really learnt something which other front end ytubers haven't mentioned thanks and keep growing;) GL

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Very glad to hear that mate! Thanks for the lovely comment 🙂 You too, all the best!!!

  •  2 ปีที่แล้ว +1

    Thank you genius! I was trying to place my footer and this was the best solution for my project.

    • @CodingJourney
      @CodingJourney  2 ปีที่แล้ว +1

      Amazing! Glad this was helpful. All the best, keep coding!! 💙

  • @sobrecoxadealface6745
    @sobrecoxadealface6745 4 ปีที่แล้ว +4

    Incredible how fast and efficiently you can make a good looking web page! btw thx you helped me so much

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      My pleasure 🙂 Very happy to hear that!! 💙

  • @priyamganguly
    @priyamganguly 4 ปีที่แล้ว +1

    Footers are really very stubborn to control. Thank you for taking time to make this video. It made my task very easy.

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Amazing! My pleasure, very glad it helped 😉💙

  • @mrfritz9901
    @mrfritz9901 ปีที่แล้ว +1

    thanks -- the padding-bottom on body really helped me.

  • @alejandroszg
    @alejandroszg 3 ปีที่แล้ว +2

    The solution with the calc it's AMAZING!

    • @CodingJourney
      @CodingJourney  3 ปีที่แล้ว

      Thanks mate! So are you 😉 Keep coding!!

    • @braydonkolton292
      @braydonkolton292 3 ปีที่แล้ว

      I realize it is pretty randomly asking but does anyone know a good site to stream new series online?

    • @zachariahmarcellus8456
      @zachariahmarcellus8456 3 ปีที่แล้ว

      @Braydon Kolton try Flixzone. You can find it by googling :)

  • @kinoko1493
    @kinoko1493 3 ปีที่แล้ว +1

    thank u 100000x times u got a new loyal subscriber

    • @CodingJourney
      @CodingJourney  3 ปีที่แล้ว

      Heh totally my pleasure 🙂 Welcome aboard!! Keep coding and enjoy the journey 🙂💙💙

  • @CWhitmer22015
    @CWhitmer22015 4 ปีที่แล้ว +1

    Thanks for making the video. Very simple and to the point. I like the aside about the jscript for the year.
    Keep the videos coming, it is appreciated.

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Oh thank you for the lovely comment 🙂 Very glad you liked it! I will 😉 Take care!!

  • @lyntechi4440
    @lyntechi4440 4 ปีที่แล้ว +2

    Wow seriously thank you so much. i couldnt figure out why my footer kept moving around everywhere each time my content size went down.

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      🙂 My pleasure! Very glad to hear that this helped! All the best, keep coding 😉

  • @anandita166
    @anandita166 4 ปีที่แล้ว +1

    Soo helpful! I've been stuck at this the whole day, thank-you!!!!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +2

      My pleasure! Very glad it helped 🙂

    • @JJSfromCHI
      @JJSfromCHI 4 ปีที่แล้ว +1

      Honestly. Knowing that it’s a footer it should automatically stay at the bottom without having to use a fixed position 😩

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +2

      @@JJSfromCHI Heh! Yeap, would be nice if this was the default behavior 🙂

    • @anandita166
      @anandita166 4 ปีที่แล้ว +1

      @@JJSfromCHI yup that's unfortunate and annoying 🥴

  • @RANKKY9
    @RANKKY9 4 ปีที่แล้ว +27

    solution: 6:32

  • @sebastiancuatepotzo3181
    @sebastiancuatepotzo3181 4 ปีที่แล้ว

    this video is awe, it explain a lot in a clear way, thank you man

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Thank you for the lovely comment 🙂 Glad you liked it!!

  • @wendersonfernandes530
    @wendersonfernandes530 4 ปีที่แล้ว

    You are a lifesaver!!!!
    thanks from Brazil!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Heh! Amazing, very glad it helped 🙂 My warmest greetings to Brazil!! 🙂

  • @minhchauha891
    @minhchauha891 2 ปีที่แล้ว +1

    you literally saved me, god bless u

  • @mariyam823
    @mariyam823 2 ปีที่แล้ว +1

    Thank you so muchhh 🥺 Day after tommorow I have practical exam and I need to make a website in 45 mins
    It was so helpful 👍

    • @CodingJourney
      @CodingJourney  2 ปีที่แล้ว

      My pleasure, very glad this was helpful! All the best to your exam 💙 P.S. don't just watch videos, but code along and at some point try to create stuff from scratch on you own!!

    • @mariyam823
      @mariyam823 2 ปีที่แล้ว

      @@CodingJourney yeah I tried in my own code at the same time and the second method worked so I commented... The calc function didn't work..

    • @mariyam823
      @mariyam823 2 ปีที่แล้ว

      @@CodingJourney And Thank You So Much💫

  • @simongamer7288
    @simongamer7288 2 ปีที่แล้ว +1

    Worked very well, thanks God bless u

  • @mbdAli
    @mbdAli 3 ปีที่แล้ว +1

    It saved lots of time for me.

  • @cristianmitu592
    @cristianmitu592 ปีที่แล้ว +1

    Amazing approach, thank you!

  • @dtawantawng5131
    @dtawantawng5131 2 ปีที่แล้ว +1

    I like this approach. I always struggle with footer positioning, so I'm trying this in my current project that I just started. If it all works okay, I'll make this my go-to footer positioning method (:

    • @CodingJourney
      @CodingJourney  2 ปีที่แล้ว

      🤞🙂 All the best mate, keep coding!! 😉

  • @TuyaTheNasty
    @TuyaTheNasty 3 ปีที่แล้ว +1

    Saved me twice. Thank You and have my sub! :D

    • @CodingJourney
      @CodingJourney  3 ปีที่แล้ว

      Heh 😉 Thanks mate, welcome aboard! 💙💙

  • @segsfault
    @segsfault 4 ปีที่แล้ว +3

    Thank you so much i was finding this all day

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +1

      Amazing! Very glad I could help 🙂

    • @CreativeMCYT
      @CreativeMCYT 3 ปีที่แล้ว

      @Manju Bhai Mee too

  • @danieldelfresno
    @danieldelfresno 4 ปีที่แล้ว

    Thanks a lot man! Some information in this one, made all the difference here!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Amazing mate, very glad you liked it!! The "that made all the difference" reminded me one of my favorite poems..."The road not taken" 🙂😉

  • @Skavenscribe
    @Skavenscribe 4 ปีที่แล้ว +1

    Thanks a lot for this tutorial, it was easy to follow and fun to learn. I like your style. It's relaxed and down to earth.

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +1

      Oooh thank you for the nice words! Very glad you liked it :)

    • @Skavenscribe
      @Skavenscribe 4 ปีที่แล้ว +1

      @@CodingJourney Not a problem mate. I was watching another tutorial about how to solve this issue with the footer, and they showed how to "push" it down to the bottom with content. I thought that was a pretty dodgy and unprofessional way of doing things. Your way is much better!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +1

      Thanks mate! Well, I'm doing my small research before each video trying to present the best solutions, according to my opinion of course :) And over time new ways of solving problems come up...for example if I made this video today, I would also probably present a solution using flexbox...things never get boring in web development ;)

    • @Skavenscribe
      @Skavenscribe 4 ปีที่แล้ว +1

      @@CodingJourney Absolutely. Things are constantly evolving all the time and that's the fun part about it I think. I'll stay tuned for new videos!

  • @kamaralam1056
    @kamaralam1056 2 ปีที่แล้ว +1

    This is the video I'm looking for thank you so much 👍

    • @CodingJourney
      @CodingJourney  2 ปีที่แล้ว

      Amazing, my pleasure 🙂💙

  • @Godisbetter909
    @Godisbetter909 4 ปีที่แล้ว +1

    Very simple when you explain , thanks!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +1

      Thank you! Very glad it was helpful! 💙🙂

  • @janiner2612
    @janiner2612 ปีที่แล้ว +1

    THANK YOU!!

  • @osminmedrano6466
    @osminmedrano6466 4 ปีที่แล้ว +1

    Thaanks bro!
    from Costa Rica!♥

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      My pleasure!! 🙂 Warm greetings to Costa Rica 💙💙

  • @Vanille-ny7ln
    @Vanille-ny7ln 2 ปีที่แล้ว +1

    Thank you so much! Very helpful.

  • @Ipdxcreative
    @Ipdxcreative 4 ปีที่แล้ว +1

    Dude thank you so much, this has been very helpful! I really appreciate it!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +1

      Amazing! Glad it helped 🙂 Just watched your home-made hand sanitizer video...I will definitely follow your instructions...don't have an orange though so I will use grapefruit instead, hope it still works 😉😁💙

    • @Ipdxcreative
      @Ipdxcreative 4 ปีที่แล้ว +1

      @@CodingJourney oh it will! I forgot to mention it's primarily the citrus that does it 😂 how long you been programming for?

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Heheh 😉🙂 Well I've been programming for a while...very specific I know 😂 Wrote my first line of code about 15 years ago but I've been in and out of programming...into web development the past 3 years or so 🙂

    • @Ipdxcreative
      @Ipdxcreative 4 ปีที่แล้ว +1

      @@CodingJourney Thats awesome. Its been interesting to see how far people are along in their journey and where they want to go!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Indeed!! Also, coding community rocks 😁😉💙💙

  • @vishalpawar1366
    @vishalpawar1366 3 ปีที่แล้ว +1

    got exact what Im looking for Awesome

  • @yokohibarashi1386
    @yokohibarashi1386 4 ปีที่แล้ว +1

    Still the best tutorial on this very annoying thing! thanks.

  • @davebudah
    @davebudah 5 ปีที่แล้ว

    Best explanation so far, thanks so much

    • @CodingJourney
      @CodingJourney  5 ปีที่แล้ว

      Thanks man! Glad you liked it!!

  • @GuilhermeTeixeira
    @GuilhermeTeixeira 3 ปีที่แล้ว +1

    You helped me a lot. Thank you so much!

    • @CodingJourney
      @CodingJourney  3 ปีที่แล้ว +1

      My pleasure 🙂 Very glad to hear that! Keep coding 😉

  • @andrewamentojr
    @andrewamentojr 2 ปีที่แล้ว +1

    Excellent video learned alot thank you!

  • @maazalikhan8765
    @maazalikhan8765 4 ปีที่แล้ว +1

    thanks a lot, man you probably save my job!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Hahah! Googling and searching for solutions is part of the job, so you saved it 😉💙

  • @BicospaceTech
    @BicospaceTech ปีที่แล้ว +1

    you are gold man

  • @muteebakram37
    @muteebakram37 3 ปีที่แล้ว +1

    Thank you man. This helped me.

  • @Theactualgamer1
    @Theactualgamer1 3 ปีที่แล้ว +1

    Really good video. Very professional

    • @CodingJourney
      @CodingJourney  3 ปีที่แล้ว

      Oh thank you 🙂 Very glad you liked it!

  • @user-cq1ss3jy8i
    @user-cq1ss3jy8i 5 ปีที่แล้ว +1

    Perfect tutorial, helped out tremendously! Thanks a lot!

  • @Kittycat1986abc
    @Kittycat1986abc 4 ปีที่แล้ว +2

    Thank you you're a lifesaver!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      I'm just a web developer 🙂 But very glad to hear you found this useful!!

  • @adityadighe1582
    @adityadighe1582 4 ปีที่แล้ว +1

    very nice job sir !! You have been of great help !!! Thank you !! best wishes to you !!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +1

      Ooooh thank you for the nice words 🙏 Very glad it helped! U2, all the best!!

    • @adityadighe1582
      @adityadighe1582 4 ปีที่แล้ว +1

      @@CodingJourney Sir I am currently looking for job hopefully I shall get it soon.

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +1

      @@adityadighe1582 Good luck!! Keep trying and improving your skills and it will happen!

  • @RN-ru2rj
    @RN-ru2rj 3 ปีที่แล้ว +1

    Thank you so much. You are awesome. 🙌

    • @CodingJourney
      @CodingJourney  3 ปีที่แล้ว

      You are 😉 Glad you liked it, my pleasure!!

  • @aniemmanuel3160
    @aniemmanuel3160 4 ปีที่แล้ว +1

    Made my day easy

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Very glad to hear that 🙂 Made my day better 😉💙

  • @codebuster2716
    @codebuster2716 9 หลายเดือนก่อน

    Excellent video!! Thank you.

  • @Tony-pe3kp
    @Tony-pe3kp 5 ปีที่แล้ว

    Nice and clear as usual. THANKS!!

  • @otnielotniel8455
    @otnielotniel8455 4 ปีที่แล้ว +1

    I really appreciate, thank you. I'd like that you do a video to explain the position of the articles and sections within the main of the page

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Very glad you liked it 🙂 Nice suggestion, thanks! I currently have many many things lined-up though so I'm quite certain that by the time I will be able to upload such a video you will already be able to create all sorts of layouts!! 😉🙂

  • @lidipm8748
    @lidipm8748 2 ปีที่แล้ว +1

    Great explanation 👌 Thank you for sharing it

    • @CodingJourney
      @CodingJourney  2 ปีที่แล้ว +1

      Totally my pleasure! Glad you found this useful!! Keep coding 😉💙

    • @lidipm8748
      @lidipm8748 2 ปีที่แล้ว +1

      ​@@CodingJourney It really is 👌 🤗 thanks!

  • @saimasalamat2187
    @saimasalamat2187 5 ปีที่แล้ว

    Thank You so much you sort out my problem of footer

  • @AmaZzing0zZ
    @AmaZzing0zZ 3 ปีที่แล้ว +1

    problem solved after 8 hours thanks

  • @_vikramhegde_
    @_vikramhegde_ 5 ปีที่แล้ว

    Very cool... Well explained 👍👏.. Look forward to more tips from this channel

  • @jilalabderezake8231
    @jilalabderezake8231 4 ปีที่แล้ว +1

    bravo bro best and beautiful work

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Oh thanks bro, very glad you liked it!! Keep coding 😉

  • @sambasivarao3392
    @sambasivarao3392 วันที่ผ่านมา

    What happens when height of header or footer is dynamic? Can we handle with CSS?

  • @chinwokenwafor871
    @chinwokenwafor871 4 ปีที่แล้ว +1

    Thank you so much for this video!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      My pleasure 🙂 Very glad it was helpful!!

  • @lobsangbarriga5324
    @lobsangbarriga5324 4 ปีที่แล้ว +1

    Thanks man!! So useful!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +1

      Amazing! Very glad it helped 🙂

  • @adriancelis9691
    @adriancelis9691 4 ปีที่แล้ว +1

    This is awesome. Thank you!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +1

      Amazing! Very glad you liked it!! 🙂

  • @vaishnavideshmukh1428
    @vaishnavideshmukh1428 3 ปีที่แล้ว +1

    Sir may ik what tool did u use to see the height of header and footer how can we see that

    • @CodingJourney
      @CodingJourney  3 ปีที่แล้ว

      Hello! I'm using the DevTools which are build into the browser. To open DevTools in the browser: right click and select inspect (or simply hit F12). You can then select the "Elements" (or "Inspector" tab if you are using Firefox) and by hovering over the specific element you will see the dimensions. All the best, keep coding!! 💙

  • @abdifatahmoh
    @abdifatahmoh 5 ปีที่แล้ว

    You saved my life, thanks!

  • @nullzero9224
    @nullzero9224 ปีที่แล้ว

    Excellent and well explained 👌 - Thanks

  • @chocobroodje
    @chocobroodje 5 ปีที่แล้ว

    Thank you so much man. This helped me so well and was really clear.

    • @CodingJourney
      @CodingJourney  5 ปีที่แล้ว

      Amazing! Very glad you found this useful. Thanks for the lovely comment 🙂

  • @Ithinktoons0351
    @Ithinktoons0351 ปีที่แล้ว +1

    Thanks, Developer great Help.

  • @sethfrady9334
    @sethfrady9334 4 ปีที่แล้ว +1

    You are amazing! Thank you!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      You are! 😉 Very glad you liked it 🙂

  • @noxdralock6293
    @noxdralock6293 4 ปีที่แล้ว +1

    Really well explained ! Thank you for this vid, you saved me on this one ;)

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Ooooh very glad to hear that!! 🙂 My pleasure 🙂

  • @paulsemenya1864
    @paulsemenya1864 5 ปีที่แล้ว

    how do you disable/enable the content using keyboard? 10:04

    • @CodingJourney
      @CodingJourney  5 ปีที่แล้ว +2

      "Ctrl + /" in order to toggle comment (comment out/uncomment)
      Other keyboard shortcuts I'm using all the time:
      "Ctrl+Z" to undo
      "Ctrl+Y" to redo
      "Ctrl+C" to copy
      "Ctrl+X" to cut
      "Ctrl+V" to paste
      "Ctrl+F" to open the find dialog
      "Ctrl+S" to save

  • @rauljrperemne1924
    @rauljrperemne1924 3 ปีที่แล้ว +1

    Awesome! Thanks!

  • @Alex._ricardo
    @Alex._ricardo 4 ปีที่แล้ว +1

    Great video! Thanks Bro :D

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Amazing! Very glad you liked it 🙂💙

  • @0508Anar
    @0508Anar 4 ปีที่แล้ว

    Thanks Mate! That really helped me!

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Amazing! Very glad it helped 🙂

  • @codewithkaran8860
    @codewithkaran8860 2 ปีที่แล้ว +1

    Great content 👌

  • @Azeuuu
    @Azeuuu 2 ปีที่แล้ว +1

    Thanks dude!

  • @BloodyClash
    @BloodyClash 4 ปีที่แล้ว +1

    Using VH for desktops is good. But on mobile you will run into problems as soon as you scroll down enough to hide the browser's address-bar (page will jump). For that then it's more elegant to use min-height: 100% on body and height:100% on html (not min-height on html)

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      That's interesting! I will check it out, thanks for you input!! 💙

    • @BloodyClash
      @BloodyClash 4 ปีที่แล้ว +1

      @@CodingJourney 😁Ah. You understood it right. Already wanted to edit because people may think i want to critic or bully

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Heheh! Well I'm open to bullying as well 😁 But it is usually very easy to understand where a comment is coming from! For me it was quite obvious that the purpose of your comment was to contribute in a constructive way!! 🙏😉

    • @BloodyClash
      @BloodyClash 4 ปีที่แล้ว +1

      @@CodingJourney It actually was. And i won't bully a person i respect. And someone like you who teaches beginners or people who are looking for something specific earns respect

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Oh thank you for the nice words!! It's totally my pleasure 🙂 Coding community rocks!! 😉💙

  • @luciensielah6354
    @luciensielah6354 10 หลายเดือนก่อน

    How did you use the div tools to get the exact height

  • @ssigitas69
    @ssigitas69 4 ปีที่แล้ว +1

    Thank you so much. One of easiest way to keep footer down. But of course not ideal. Because if you change something in footer or header, you need to change and code (numbers) in formula. But anyway it is simplest method for me. Just didn't understood, what giving box-sizing: border-box; ?

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +1

      Hey, thanks 🙂 By taking the second approach (absolute positioning of footer), you only have to "worry" about footer's height so that you add the corresponding padding (approximately, doesn't have to be exact, just >= than footer's height). We usually do the same thing to push the content below navigation bars! If I created this video today, I would also add a flexbox solution, which doesn't need calculations but requires a certain structure. Nothing is ideal, the point is to make decisions and move forward 😉 box-sizing: border-box; is irrelevant to the main objective of this video! I usually prefer border-box (instead of the default content-box) for box-sizing, because it simplifies calculations when adding borders and padding. Here's a link for more details: developer.mozilla.org/en-US/docs/Web/CSS/box-sizing

    • @ssigitas69
      @ssigitas69 4 ปีที่แล้ว +1

      @@CodingJourney Thank you so much for your response, I need to learn more about everything

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว +1

      Learning never ends 😉 All the best, keep coding!! 🙂

  • @emilandersen6865
    @emilandersen6865 4 ปีที่แล้ว +1

    Thank you. Nice video

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      My pleasure! Glad you liked it 🙂

  • @khosroyavari8914
    @khosroyavari8914 2 ปีที่แล้ว

    For some reason the calc method isn't working. It doesn't make the footer budge even a little. What could possibly be the issue?
    EDIT: I tried this in a different file following your steps and it worked, then I pasted the code containing my page from my original file and it was still fine, I then removed the min-height property completely and the footer was still at the bottom. I'm happy with the result but I'm wondering what is causing this behavior? Since the original calc values are no longer valid and the property itself has been removed too?

  • @mariyam823
    @mariyam823 2 ปีที่แล้ว +1

    Can you please make a video on how to use z-index .. and if you have already made one then can you please share the link.. Thank You!!

    • @CodingJourney
      @CodingJourney  2 ปีที่แล้ว +1

      I haven't made a video specifically on z-index so far...a good resource (besides videos) would be w3schools and mdn web docs, so if you google "z-index" the first couple of results will be from these websites! All the best 💙💙

  • @adrianpolintan9597
    @adrianpolintan9597 4 ปีที่แล้ว +1

    Thank you so much Sir... appreciated.. :)

  • @CreativeMCYT
    @CreativeMCYT 3 ปีที่แล้ว +1

    Thank you so much! This is an amazing Tutor for me, and it really helped a lot for my website!!! You deserve a sub from me 😀

    • @CodingJourney
      @CodingJourney  3 ปีที่แล้ว +1

      Oh thank you! Very glad you found this useful!! Welcome aboard 😉💙

  • @AA-em3lw
    @AA-em3lw 4 ปีที่แล้ว +1

    You are amazing

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Yes you are!! 😉🙂 Thanks mate 💙

  • @srinivaspatnala696
    @srinivaspatnala696 5 ปีที่แล้ว

    thank you so much man, it works for me

    • @CodingJourney
      @CodingJourney  5 ปีที่แล้ว

      Amazing mate!! Very happy to hear that 🙂

  • @anthonyarguello9490
    @anthonyarguello9490 4 ปีที่แล้ว +1

    Thanks man!

  • @MudassirKhan-sx9jy
    @MudassirKhan-sx9jy 3 ปีที่แล้ว +1

    Awesome💕💕

  • @ghaithalmidani8924
    @ghaithalmidani8924 4 ปีที่แล้ว

    how i can do that but with word press ,pleas help me if u can

  • @kaanhan7842
    @kaanhan7842 3 ปีที่แล้ว +1

    Thank you so much 👍

    • @CodingJourney
      @CodingJourney  3 ปีที่แล้ว

      My pleasure! Glad you liked it!! 💙

  • @marksiely4747
    @marksiely4747 3 ปีที่แล้ว +1

    This is the best tutorial concerning this subject. This has work for me, thanks to your style of teaching. One question, I see you don't put # in your css before body, headder, footer etc. Is this because you are using html5 and the others don't ? Thank you very much in advance!

    • @CodingJourney
      @CodingJourney  3 ปีที่แล้ว +2

      Hey thanks, glad you found this useful 🙂 Regarding your question, nope this has nothing to do with HTML5 (which btw I guess that's what others are using as well since it has already been around for about a decade). This has to do with "CSS selectors" or in other words how we can select HTML elements to style with CSS. "#" is used as an id selector, e.g. to select an element with id="footer", we would use the #footer selector. But in our case we are using the HTML tag, which we can simply select using footer (element selector). For more info you can google/search for "CSS selectors"! All the best, keep coding 😉💙

  • @pepelepoux9746
    @pepelepoux9746 4 ปีที่แล้ว

    thank you so much ! This is so helpful !

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Amazing! Pleasure is all mine 😊

  • @fitzladams
    @fitzladams 4 ปีที่แล้ว +1

    Thank you very much.

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      My pleasure! Glad you liked it 🙂

  • @nabudota
    @nabudota 2 ปีที่แล้ว

    what did he do @ 6:12 ?

  • @sbmahapatra
    @sbmahapatra 2 ปีที่แล้ว

    Thank you for the nice video. How can we make the header, main and footer responsive?

  • @ayeslpirninsev
    @ayeslpirninsev 10 หลายเดือนก่อน

    Helped me alot thanks

  • @rolandohaynes9093
    @rolandohaynes9093 5 ปีที่แล้ว

    Excellent, thanks!

  • @risheknarayan1450
    @risheknarayan1450 4 ปีที่แล้ว +1

    Love you bro

  • @minuturcin7463
    @minuturcin7463 4 ปีที่แล้ว +1

    Very Nice !

    • @CodingJourney
      @CodingJourney  4 ปีที่แล้ว

      Thank you!! Very glad you liked it 🙂

  • @johnmarcohidalgo1034
    @johnmarcohidalgo1034 3 ปีที่แล้ว

    hi im new in codings. how can i put footer on every page? is it possible without copy/pasting the footer code? thank you!