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

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

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

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

    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 года назад +4

      You're welcome :)

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

    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!

  • @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 💯

  • @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 11 месяцев назад

      masterclass teaching very good

  • @mithrandir2171
    @mithrandir2171 3 года назад +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  3 года назад +5

      Thanks so much, I really appreciate it! :)

  • @ahmedm7298
    @ahmedm7298 3 года назад +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.

  • @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

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

    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 2 года назад +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!

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

    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 Месяц назад

      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.

  • @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.

  • @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 2 месяца назад

      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

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

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

  • @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?

  • @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!!

  • @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.

  • @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.

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

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

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

      Glad it was helpful! :) thanks for watching

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

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

  • @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 :)

  • @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.

  • @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.

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

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

  • @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

  • @Palaan92
    @Palaan92 Год назад +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  Год назад

      So nice of you :) thanks for watching Syed!

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

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

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

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

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

    You redefined UI design from zero to hero.

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

    you make the web so easy and understanding for everyone

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

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

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

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

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

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

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

    "All right there gang "this are great tutorials💯

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

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

  • @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)

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

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

  • @arv1204
    @arv1204 4 года назад +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

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

    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

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

    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.

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

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

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

    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

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

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

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

      Thanks so much 😊

  • @Lucas_V.P.
    @Lucas_V.P. Год назад

    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!!

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

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

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

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

  • @garyfxxk
    @garyfxxk 3 года назад +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)

  • @avinashsingh9898
    @avinashsingh9898 10 месяцев назад +1

    bro makes us humble by writing hex codes casually

  • @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.

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

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

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

    Brilliant explanation 10 of 10.

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

    thank you very much, these videos are excellent
    btw I have one question
    you used display: inline-block for nav section under banner
    can we use display: flex for it? and handle it with justify-content: space around?
    is there any difference?

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

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

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

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

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

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

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

    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.

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

    You're a good teacher🥺

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

    i really loved the way you designed this course thank you

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

      Happy to hear that! :) thanks Hussain

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

    Awesome Course and Very easy to understand.

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

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

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

    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??

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

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

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

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

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

    Excellent explanation

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

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

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

    Thanks Shaun for creating and sharing wonderful tutorials

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

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

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

    Hi,
    My CSS has decided not to load in the browser all of a sudden.
    A message shows up reading: "Refused to apply style from '' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled."
    Basically nothing that I add in the CSS loads in the browser but the HTML is still responding.
    How do I fix this? Tried searching this on the web but I am completely stuck :( Appreciate any help with this

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

    Youre my CSS mentor bro

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

    I understood all your explanations, I just didn't understand where you got 140px for the sticky positioning. Why can't I just get it stick at top 0px? When it comes across the navigation bar?

  • @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

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

    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.

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

    Best of the best tutorial

  • @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?

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

    I loved every bit of it

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

    What do you think about tailwind css?

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

    Superb👍

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

    Thank you very much for a well planned tutorial .

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

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

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

    i used max width 100% for a image as banner but it is still to small on my screen when i have it on full, what is the solution for this problem?

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

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

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

    Commenting for the RUclips algorithm :)

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

    Very useful and clear video. Thank you!

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

      Glad it was helpful! :) thanks for watching Mark

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

    Best Teacher. Or I should say Best Sensei ;)

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

    Net Ninja, can you make a video of this website but this time do it using flexbox or grid? I am still a bit confuse about these knew style in CSS. Thank you.

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

    Very accessible, nice end product.

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

    Thank you. You make learning enjoyable.

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

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

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

    best of css😍😍

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

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

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

      "Dhanyawaad" hota hai bhai

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

    how many videos going to be in this category ?? great 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!

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

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

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

    Great tutorial series, thank you so much!

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

    At my website there are two points at the pictures because of the list do you know how to remove this?

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

    Thank to net ninja😍😍