HTML & CSS Crash Course Tutorial #8 - CSS Layout & Position

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 198

  • @agustinbustos3799
    @agustinbustos3799 5 лет назад +112

    Thanks for re-igniting my interest on web design. Many people recommend you in some forums as one of the best YT channels for learning web development, and after binge-watching some of your courses, I cannot ever disagree. Keep it up!

    • @NetNinja
      @NetNinja  5 лет назад +15

      Wow awesome :D thank you!

  • @meghaaggarwal8508
    @meghaaggarwal8508 4 года назад +32

    You have no idea how you have clarified all the very basics of CSS like max-width, width percentage, positioning by showing a live example in website. Thank you so much :)

    • @NetNinja
      @NetNinja  4 года назад +5

      You're welcome :)

  • @Dianacat777
    @Dianacat777 Год назад +5

    Something I really love about these courses is how you deliberately make common mistakes when setting code up so you can explain why they're happening and then show the viewer how to address them. Seriously, it's invaluable. Really deepened my understanding of how these different elements interact!

    • @NetNinja
      @NetNinja  Год назад +1

      Thanks, really appreciate that :)

    • @Dianacat777
      @Dianacat777 Год назад +1

      @@NetNinja I'd noticed it throughout your tutorials (currently working through this one and PHP, and seriously, your teaching style is a godsend), and you actually answered a problem I was having with a bit of beginner webdev I was working on - I couldn't figure out why some relative elements weren't taking up space on the page, then today realized they were in a div that was set as absolute. Whitespace allocation wasn't something I'd learned from just googling around how to position stuff, so I really appreciate it coming up so intuitively here! Also the concept of a CSS reset, because that makes everything SO much easier moving forward. Thanks for all the work you've put into these courses!

    • @egbesampson3568
      @egbesampson3568 Год назад

      masterclass teaching very good

  • @mithrandir2171
    @mithrandir2171 4 года назад +9

    Voluntarily watched the Ad and never skipped Ad.
    My way of thanking you for your amazing work and helping us for free. 💖

    • @NetNinja
      @NetNinja  4 года назад +5

      Thanks so much, I really appreciate it! :)

  • @kritikjain3617
    @kritikjain3617 2 года назад +7

    Man! what a fantastic course this is. Completed in one sitting, and let me tell you that it's worth in gold

  • @divyanshubhatnagar4601
    @divyanshubhatnagar4601 4 года назад +8

    No matter what you make a video on. You know your job well. Being an experienced Software Engineer, I find these so useful for refreshing my concepts and I am sure the beginners find them equally useful. Great job done 💯

  • @ahmedm7298
    @ahmedm7298 4 года назад +5

    It’s my second week of self teaching & first time here, think I’m in the right place , so far everything makes sense here , that’s how it feels. I like the way you explaining positioning.

  • @Minecrafter1101100
    @Minecrafter1101100 4 года назад +15

    Hello, Shaun! I'm on my way to become full-stack web-dev. I was for a long time in searching good resource to learn from, then I found your channel. Now I'm nearly done with html and css, thanks to your videos. I did buy your javascript course on udemy in order to support your labor! Thank you very much for your free courses as well!

    • @NetNinja
      @NetNinja  4 года назад +3

      Thanks so much, really appreciated :)

  • @robertbibong1040
    @robertbibong1040 3 года назад +4

    You are The Best Teacher Ever! You deserve alot of respect. Be blessed for the content you are sharing to us!

  • @hitthecity2
    @hitthecity2 4 года назад +6

    Been writing CSS since 2001, yet learned a lot! Thanks Shaun!

  • @michaelengher9895
    @michaelengher9895 3 года назад +2

    I really must say that the example you used to explain positioning was the best and only practical example I have ever seen. This is the first example of CSS positioning that I see that gives a REASONABLE CONTEXT of this confusing concept.
    In all other tutorials that I’ve watched, the instructors really go out of their way to explain but the examples they use to explain it are pointless and don’t give any practical context. So I always finish watching their tutorials frustrated and feeling that something was missing and didn’t know what it was. I didn’t get why I don’t get it already. So finally an example that really shows a reasonable context to use positioning. Thank you very much!! Really Fantastic example and your explanations are spot on!

    • @NetNinja
      @NetNinja  3 года назад +2

      Thank you so much 😃

    • @ItunuAyegbokiki
      @ItunuAyegbokiki 6 месяцев назад

      You are so goood, but I rather suggest that you write your codes so that we will be able to follow you orderly, and without any confusion

  • @ArtByArja
    @ArtByArja 4 года назад +15

    omg...finally i understand what im doing wrong! Even my teachers wont tell me online what i am doing wrong.......apparently I have used px, instead of % to keep headings/letters inside a banner...it would just glide outside of the image when shrinking the page.

    • @SathyarajGanesan-p9r
      @SathyarajGanesan-p9r 4 месяца назад

      Watch his flexbox video better, that will give different perspectiven

  • @strangerinyourchair
    @strangerinyourchair 4 года назад +11

    Absolutely loving these tutorials but just a bit of feedback:
    Everything has been incredibly clear up until here: 28:15. This is hard to get my head around and I feel it could be clearer. I am really tired so it might be that though. Anyway, thanks again! Brilliant stuff.

  • @redfolgers2233
    @redfolgers2233 5 лет назад +3

    dear shawn...you bring my stress levels down...you make me a better person...i love you sincerly, your fan

  • @asaanchaudhury1721
    @asaanchaudhury1721 3 года назад +1

    This is the best CSS tutorial on layout and position i have come across since I started learning 3 days ago!!

  • @nsj5673
    @nsj5673 4 года назад +7

    You are great, dude. You can't imagine how good and understandable your videos are. Keep going, you got new subscriber.

  • @bobcobb2253
    @bobcobb2253 3 года назад +1

    I had given up on understanding Absolute Positioning until I saw this. Now I finally understand. Thank you!!

  • @dms6553
    @dms6553 Год назад

    I went through the whole course in 2 days using 1.5x speed - trust me you did a god level job - I loved the way you focused on details and positioning is really well explained. I feel like I should go through the whole coure once a month.
    Keep up the good work.

  • @mehriabdukodirova9155
    @mehriabdukodirova9155 5 лет назад +5

    Best tutorial ever on the topic!) I have been watching LinkedIn learning and other RUclips resources, thankful that I found out this course :)

  • @ArchanaSingh-hd3ug
    @ArchanaSingh-hd3ug 4 года назад +1

    Built my own website after watching your videos. Thanks a lot, was really helpful for front-end development. I am Samarth from India.

  • @sam4457
    @sam4457 Год назад +1

    "All right there gang "this are great tutorials💯

  • @Michael.Sandoval33
    @Michael.Sandoval33 Месяц назад

    So I am going through the videos as I mentioned in another video, and I was able to find the answer to that last issues on the page where the "join the club" was acting differently than the rest of the UL/LI elements. We used the Join class twice! Haha I would have been so lost without this course so far and easily better than the instruction BootCamp courses. Thank you again!
    edit: oh you do go in and catch it yourself as well. But your instruction did give me the ability to identify it on my own so thanks again!

  • @lisaheesters4508
    @lisaheesters4508 5 лет назад +4

    Learned more from this video than my advanced webcoding classes. Thanks! :)

  • @Lenny4400
    @Lenny4400 2 года назад +1

    Dear friend you are doing a good job break ing things for the people! Keep it that way.

  • @ikeiris
    @ikeiris 2 года назад +1

    You are number one in my top 3 of the best instructors, I am seriously happy to have found your channel. I'm grateful 🙏

    • @NetNinja
      @NetNinja  2 года назад

      Wow, thank you Ike! :) that's much appreciated!

  • @JHatLpool
    @JHatLpool 4 года назад +2

    I am working through each of the 11 tutorials. #1 to #8 have all been very good. In this tutorial, I think the final Mario web page looks really good and gives the user a good template to work with.

    • @NetNinja
      @NetNinja  4 года назад

      Thanks :). Glad you like it.

  • @imebasseyisua-ikoh4167
    @imebasseyisua-ikoh4167 11 месяцев назад

    4 years later this is still very useful for me as a beginner. Thanks so much for really simplifying these CSS concepts

    • @NetNinja
      @NetNinja  11 месяцев назад

      Glad it was helpful! :) thanks for watching

  • @davidfrews
    @davidfrews 2 года назад

    Had to watch it 4 times but now I got it. Insane. Thank you m8.

  • @nicholaslewis279
    @nicholaslewis279 2 года назад

    Out of everyone I've watched, you're the only one who actually described what the viewport is lol

  • @SuperOnlyP
    @SuperOnlyP 4 года назад +3

    I suggest understanding block and inline, how box model is applied to block element, default margin padding of element before watching this video.
    I got confused for the first time when I watched it.

  • @ibrahimcious
    @ibrahimcious 4 года назад

    i know there are so many html and css tutorial out there. but i prefer your teaching style. Thanks!

  • @marisakirisame659
    @marisakirisame659 2 года назад

    Your teaching is amazing, I have never understood positioning until I watched this

  • @yinonb172
    @yinonb172 3 года назад +1

    Best HTML & CSS Tutorial, explanations are greats and brights.

  • @assadullah7816
    @assadullah7816 2 года назад

    Tnx u sir : After 2 months of searching finaly i fully understand the position properties

  • @Palaan92
    @Palaan92 2 года назад +2

    You are the best tutor and I am big fan of your Style to teaching us... Thank You ☺️.... For teaching us Sir💗😊...

    • @NetNinja
      @NetNinja  2 года назад

      So nice of you :) thanks for watching Syed!

  • @myjava2844
    @myjava2844 3 года назад

    You redefined UI design from zero to hero.

  • @egbesampson3568
    @egbesampson3568 Год назад

    you make the web so easy and understanding for everyone

  • @ArtVandelayInc
    @ArtVandelayInc 4 года назад

    Just wow. That was a perfect teaching of a subject. Hands down man

  • @weareloved
    @weareloved 2 года назад +1

    omg! Thank you so much for these tutorials !! 🙏🏻

  • @chammu6936
    @chammu6936 4 года назад +1

    Clear explanation.Please upload the video on different CSS units(%,em,rem,px) and when to use what unit?

  • @SantoshPun123
    @SantoshPun123 5 лет назад +18

    Your explanation is freakin awesome... Overall 10/10 rating :)

    • @NetNinja
      @NetNinja  5 лет назад

      Thanks so much 😊

  • @MrSmellyPotato
    @MrSmellyPotato 5 лет назад +1

    Now I know how position works after first seen, awesome tutorial!

  • @hafsathalilu3148
    @hafsathalilu3148 3 года назад

    This is awesome! I'm blown away! I love how you explain is very simple terms.

  • @emantsrifemantsal2834
    @emantsrifemantsal2834 4 года назад +1

    this is so practical
    many cool websites that i visited contain a lot of these commands (also some contain js which i'll watch next)

  • @arv1204
    @arv1204 5 лет назад +9

    Thank you for your free tutorial training course I'm learning a lot! just a question I noticed that the navigation titles are a bit way off the center how can I center it completely?

    • @iamsandwich
      @iamsandwich 2 года назад +1

      2 years late, but text-align: center; in the nav ul
      In case anyone else gets this problem

  • @kashifdeshmukh9340
    @kashifdeshmukh9340 Год назад

    Awesome Course and Very easy to understand.

  • @mikenje5409
    @mikenje5409 5 лет назад +2

    Brilliant explanation 10 of 10.

  • @anuragthakur5787
    @anuragthakur5787 2 года назад

    Had to watch this 2 times but I got it all
    great explanation ✌

  • @Lucas_V.P.
    @Lucas_V.P. 2 года назад

    Dude, your Videos are overall so well done! I even figured out, that you dont need to experiment with the nav tag. If you inspect the header and hover over the outer field of the "block graphic" it shows you the exact measurement of the element in pixels on the webpage! So you can just read that off :)) in this case you couldve instantly seen that it were 147.88 pixels, so pretty accurate with the 148" in the video :D
    Greetings from Germany man, you are helping us out so much!!

  • @garyfxxk
    @garyfxxk 4 года назад +4

    for those have problems with centering the 'nav ul' , change 'max width' from 1200px to ur computer resolution size (e.g mine 1080px)

    • @BondTop10ThemeSongs
      @BondTop10ThemeSongs 2 года назад

      text-align: center; needs to be added for 'nav ul' (at 23:10)

  • @danieletchie9955
    @danieletchie9955 5 месяцев назад

    Net Ninja I'd like to say you have made CSS so easy for me thanks I appreciate all your effort
    And also I want to say that maybe after each tutorial maybe just like a minute or two show the coding, as a learner I may touch somewhere on my mouse and with that I have made a mistake and when I save and preview I will not be having the same result as you have so just saying for my self and others out there.
    Thanks

  • @miriammiriamxoxo
    @miriammiriamxoxo 5 лет назад +1

    Its looking beautiful, just in time!! Now just sit and wait for the new Mario movie to come out :D

  • @arese9202
    @arese9202 4 года назад +1

    You're a good teacher🥺

  • @prasadingole7315
    @prasadingole7315 3 года назад

    You explain it very well, I learn lots of from your video, Thanks man!

  • @hussainbabonji4207
    @hussainbabonji4207 2 года назад

    i really loved the way you designed this course thank you

    • @NetNinja
      @NetNinja  2 года назад +1

      Happy to hear that! :) thanks Hussain

  • @julietegbule5532
    @julietegbule5532 3 года назад

    I swear you are awesome. Finally someone taught me how to position my page . Big ups man . Are you on udemy

  • @eazlai
    @eazlai 5 лет назад +1

    Why do you hard code font sizes (e.g. 48px @ 31:12)? It seems that this will make the website less responsive. Why not use font sizing approaches that are more dynamic?

  • @romko-romario
    @romko-romario 3 года назад

    A great tutorial! Really helped me to finally understand CSS positioning.

  • @markzait2750
    @markzait2750 2 года назад

    Very useful and clear video. Thank you!

    • @NetNinja
      @NetNinja  2 года назад +1

      Glad it was helpful! :) thanks for watching Mark

  • @ARTdeas
    @ARTdeas 4 года назад

    What a Tutorial, Amazing , unbelievable, thank you very much

  • @Shakeel714
    @Shakeel714 4 года назад

    Thanks Shaun for creating and sharing wonderful tutorials

  • @hospitaller100
    @hospitaller100 4 года назад

    It's like watching a cooking show haha. Nicely done! Btw I'm watching your tutorials on udemy and they are so great! thanks a lot!

  • @DarkSideofTheMoon005
    @DarkSideofTheMoon005 4 года назад

    Sir, thank you so much!
    I've only been coding for 3 weeks now and I had a very hard time understanding this. I was beginning to think I choose the wrong hobby.

  • @mohitwayde249
    @mohitwayde249 3 года назад +1

    Superb👍

  • @rafatmuizmahmud2698
    @rafatmuizmahmud2698 5 лет назад +2

    I loved every bit of it

  • @syeedimtiaz2974
    @syeedimtiaz2974 2 года назад

    Thank you very much for a well planned tutorial .

  • @harryflim
    @harryflim 5 лет назад +3

    Excellent explanation

  • @codedynamics1
    @codedynamics1 3 года назад

    Thanks Shaun! Ur the greatest, along with Brad ☺️👨‍💻

  • @alexroy4235
    @alexroy4235 3 года назад

    Best of the best tutorial

  • @siddhartharoychowdhury2489
    @siddhartharoychowdhury2489 3 года назад

    Best Teacher. Or I should say Best Sensei ;)

  • @avinashsingh9898
    @avinashsingh9898 Год назад +1

    bro makes us humble by writing hex codes casually

  • @zig_coin
    @zig_coin 5 лет назад +1

    Thank you. You make learning enjoyable.

  • @toluwanielemosho7308
    @toluwanielemosho7308 5 лет назад +1

    Youre my CSS mentor bro

  • @gorgeelibertad5456
    @gorgeelibertad5456 4 года назад

    you deserve all the likes subscribes and shares. THANK YOU!

  • @codigoninja
    @codigoninja 4 года назад

    Great tutorial series, thank you so much!

  • @remaztoti2587
    @remaztoti2587 4 года назад

    thank you so much much love to u mr. ninja ur the best keep up the good work

  • @jeffxcc
    @jeffxcc 2 года назад

    This is great! I'm getting it.

    • @NetNinja
      @NetNinja  2 года назад

      That's great to hear Jeffrey! :)

  • @barberone94
    @barberone94 3 года назад

    at 39:09...there's still a little line between the navbar and the banner image. It doesn't seem to be a margin...How can I get rid of it? Thank you.
    ok, I fixed it setting the .img banner as a block. I don't know if it's correct but it worked.

  • @beetlejuice5786
    @beetlejuice5786 4 года назад

    Very accessible, nice end product.

  • @jakobgoldbach903
    @jakobgoldbach903 2 года назад

    At 15:11 - why is the margin of the h1 in the header not background-color filled until you add padding to the header?

  • @dineshr3841
    @dineshr3841 3 года назад

    Best tutorial and it's very useful...👍🏻

    • @NetNinja
      @NetNinja  3 года назад

      Thanks a lot 😊

  • @amongdoomers9464
    @amongdoomers9464 5 лет назад +1

    best of css😍😍

  • @francomateoturco306
    @francomateoturco306 Год назад

    I hope you read this comment, what do you think about flexbox? should i use it for display ? could you do a tutorial about it ? thank you so so so much for your videos ! much appreciated your time and dedication

  • @speakerspeak7722
    @speakerspeak7722 3 года назад

    Thank to net ninja😍😍

  • @ishratkaur1605
    @ishratkaur1605 2 года назад

    AT 16:19, why does the banner start to cover the header ?What property made it change so ?

  • @sdarcy29
    @sdarcy29 4 года назад

    OMG , mate you should be a tutor. Why cant this be the norm when teaching.

  • @pankajrawat7435
    @pankajrawat7435 5 лет назад +6

    "Dhanyabad !" It Means Thank You in Hindi !!!

    • @astrix8812
      @astrix8812 5 лет назад +3

      "Dhanyawaad" hota hai bhai

  • @allanzjiang
    @allanzjiang Год назад

    Commenting for the RUclips algorithm :)

  • @keyos27
    @keyos27 5 лет назад +2

    Hi, Ninja. This is my first time utilizing "white-space" property. I am just wondering if you are not using the layout system like Flex or Grid in order not to make this series complicated for the beginners?

    • @NetNinja
      @NetNinja  5 лет назад +2

      Hey, correct. I have 2 complete playlists for flex and grid. But I think it’s important to understand all the basics first.

    • @keyos27
      @keyos27 5 лет назад +1

      @@NetNinja Definitely! Thank you for reply.

  • @MonkeyCarrots
    @MonkeyCarrots 25 дней назад

    8:30 for some reason this doesnt work for me. Its exactly the same code and using vsc.
    Ive re written it all so many times to check but its still not moring the text on top of the image.

    • @MonkeyCarrots
      @MonkeyCarrots 25 дней назад

      2 hours later! Sorted.
      Haven't done code for about 2 years and refreshing on everything.
      Problem was, I wrote class="Welcome" instead of class="welcome".
      Now I remember why coding can get frustrating for the silliest little mistakes! Lol

  • @YogeshKumar-en1nr
    @YogeshKumar-en1nr 3 года назад

    Why is width changing at 15:28 when **position** is changed from static to fixed?? Any reasons??

  • @thstudio007
    @thstudio007 4 года назад +1

    I've been following this course from the very beginning. It's really easy to follow. However, the menu is not centered yet :P

  • @Ceasar-Empire
    @Ceasar-Empire 8 месяцев назад

    Thanks Shaun you've been doing an amazing work
    I have a little issue, I was trying to tag my h1 as you did yours in this tutorial in my Css file, but it's not working, I mean the border, text color etc non is showing

  • @PcHabitat
    @PcHabitat 5 лет назад +1

    Can you change the color of the navbar at around 150px from the top by doing a sticky header??

  • @flifluflofli
    @flifluflofli 2 года назад +1

    wow the no wrap i would not have figure it out lol

  • @theghostface5045
    @theghostface5045 22 дня назад

    I think you could do with * selector instead using body ul li h2 h3 ..

  • @bipolar9242
    @bipolar9242 5 месяцев назад +1

    i wish i knew you 4 years ago

  • @tahaali9833
    @tahaali9833 5 лет назад

    how many videos going to be in this category ?? great tutorials.

  • @joonaspuurtinen6396
    @joonaspuurtinen6396 3 года назад

    Hello The Net Ninja! Which theme are you using in these videos? It certainly looks like Monokai++ but it is a bit dimmer with the colors than what I have found which is more pleasing to eyes.

  • @egbesampson3568
    @egbesampson3568 Год назад

    pls one question ninja why is it that you avoid using the caps lock like writing in capital letters
    thanks