Navbar CSS Tutorial: 3 Ways to Create a Navigation Bar with Flexbox
VloĆŸit
- Äas pĆidĂĄn 27. 04. 2019
- This free design and web development course will use Flexbox and basic HTML to create 3 different navbar designs. You'll see some examples of how Flexbox properties like 'align-items', 'justify-content', and 'order' can be used to quickly spin up new web designs.
This series is intended as a project-based course and will not go in-depth into HTML, CSS, or Javascript. If you want to learn more about those check out the links at the bottom of the description.
đ COURSE FILES đ
đ gum.co/QsaXx
â° TIMESTAMPS â°
Navbar 1: 0:22
Navbar 2: 10:18
Navbar 3: 11:58
â USEFUL LINKS â
đ A Complete Guide to Flexbox: css-tricks.com/snippets/css/a...
đ Google Fonts: fonts.google.com/
đ TOP RECOMMENDED COURSES đ
CSS
(Paid) Build Responsive Real World Websites with HTML5 and CSS3
www.udemy.com/design-and-deve...
(Free) CSS Crash Course For Absolute Beginners
âą CSS Crash Course For A...
CSS GRID
(Free) Flexbox CSS In 20 Minutes
âą Flexbox CSS In 20 Minutes
(Free) A Complete Guide to CSS Flexbox
css-tricks.com/snippets/css/a...
CSS FLEXBOX
(Free) CSS Grid Tutorial
âą CSS Grid Tutorial #1 -...
(Free) A Complete Guide to CSS Grid
css-tricks.com/snippets/css/c...
JAVASCRIPT
(Paid) The Complete JavaScript Course 2019: Build Real Projects!
www.udemy.com/the-complete-ja...
(Free) Learn JavaScript - Full Course for Beginners
âą Learn JavaScript - Ful...
đ SUBSCRIBE đ
/ @skillthrive
đ FOLLOW US đ
INSTAGRAM: / skillthrive
FACEBOOK: / skillthrive
Thanks very much mate, this is exactly what I was looking for !!!
Scrolling down my feed and found this video today. One of the videos that helped me back then when I was a beginner. Thank you.
Great tutorial. Loved the pacing. Perfect I think for someone that already understands a bit about CSS and HTML, no BS, just content, looks great too.
Glad you enjoyed it!
Bro...u could have just used Emmet abbreviation ! for boilerplate
Yup! Pace is perfect! End result is amazing. And I love that he explains what the code is doing.
Very nice mic quality and clear explanation of what did you do in this tut. Looking forward for more!
Thank you!
Thanks dude, I was looking for this kind of structure!
15 min video and I stayed all day long doing this. Thank you! For sure helped a lot.
Glad it helped!
Just found this tutorial. Thank you. I love the modern look, and this helped me solidify my knowledge in creating navbars.
You're very welcome!
Great tutorial! Funnily enough, I use Montserrat too and have used it in past projects, I was just searching around for some good navbar tutorials. Keep up the good work!
Same man, Montserrat just genuinely looks good especially with websites!
Just what I needed, keep em coming!
Will do đ
Thank you so much I appreciate it when people actually explain what they are doing in css!
Happy to help!
Wow your videos are so good definitely better that those with music, love your content keep it upđâ„ïž
Thanks, Amir!
Thank you for this tutorial! I made all three and changed the CSS to have variables at the top to make it more customizable and put the navbar into a div element. I also make the image a link! So if I ever need this for a project I can just insert the code to my page.
On point! just what I needed, keep it up đ€đŒ
Thanks for this! Seems so complicated at first but after a few replays I got the gist of the design and now kinda know it myself!
Glad you got the hang of it!
Thank you so much! Iâve been trying to figure this out for awhile. No one else made it click for me.
You have an extremely effective way of explaining stuff. You got a new sub! :)
This channel should be rearward!
They post tutorial videos for free and without any advertisements! đđđđ
Rewarded*
The moviment of the cursor with that blur is amaizing!
It's because he's using a high refresh-rate monitor
Holy, man. Thanks, i've just learned that i can order elements in a flex container. Awesome, ty again man.
great job mate :)...i know all that stuff but i forget detail :) nice to fresh memories...
Thanks! Itâs crazy how fast we can forget things. đ Refreshers are always nice.
Short, Crisp and to the point. Thanks for this video. Keep it up :)
It also reminds me why we usually tends to use different CSS framework/s just to avoid writing so many lines of code just for a simple nav bar design.
In the html why did he put the img inside the header? Why can't we put img under nav.
@@contraspower6302 because we want the header to be divided into 3 parts, basically (logo, links and button). So if u include the img under nav, you can't have the logo set anywhere far from the nav elements.
@@sidrashawaj Thanku brother đ
Great tutorial! Simple to follow and to the point. Very helpful.
Glad you found it helpful! Be sure to check out my new stuff, too. đ
this is weird basic stuff that I never knew could be implemented like this, nice.
Thank you for the tutorial man before waching this i was not knowing what does
1 inline-block
2 display: flex
3 justify-content
etc......
i was really searching this type of content
thank you so much
Wow this was presented very clear and concise - wonderful video - I learned a lot, thank you :D
Glad you enjoyed it! âșïž
Damn awesome. To the point, clear and explained what you are doing. Thank you so much!
Thank you! Glad you enjoyed it.
Just finished with the tutorial. Simple yet effective. Thank you sir!
Glad you enjoyed it!
Thanks really helpful I understood all the code and now I know how to create menus and buttons
amazing design and explanation
Thank you!
â ïž October Updates (Code reflected in course files)
âą Mobile navigation added to all examples (in-depth example here: czcams.com/video/WxQZsN6LICM/video.html
âą Imported the Google Fonts in the head section of the index.html file instead of the CSS file
âą Removed the button that was being wrapped by the a tag and moved the button styles into .cta class styles
âą Removed the global background color (sorry for the confusion, this was a bad idea in hindsight) and moved it into the header styles
@Woohui Kim Just updated. Thanks for letting me know.
Thank you so much for this, just started learning and I was so stuck trying to make a navbar.
finally a worthy video. thank you so much for making it!
YOU JUST SAVED A LIFE MAN !!!!!!!!!!
Great content. I was able to follow along and even correct my mistakes when it didn't turn out like yours. I'm a complete beginner so I can't say it is beginner friendly (for my level at least) since I was just following along and didn't understand what I was putting in. But that's because I'm a level 1 out of 3 beginner. If you're in the mid-range beginner (if that makes sense) I think you'll be able to pick up on this really well since I did with my complete lack of knowledge. But this was great to learn. Once I get the hand of the basics, I think I'll be able to follow along and understand more completely. Thank you for this content.
How's it going for you? :D
if@@sugoish9461if u want i can help u both with code
Great tutorial, now I am starting to understand Flexbox.
truly clear explanation and straight to the point. Looking forward getting this good at coding.
Tutorial on how to make this navbar mobile friendly: czcams.com/video/WxQZsN6LICM/video.html
Updates [ Aug 2019 ]
It's not best practice to wrap a button with an a tag. Instead, just give the a tag a class and style the link to look like the button.
Also not a good idea to set background color on all elements like I did because you'd more than likely run into some unexpected styling if you were using this for your website.
instead of setting margin to auto , cant we also set justify-item to flex-start ?? for the logo i meant, soo it goes to left all the way
@@sougataghar1179 but you will have that use the property flex-direction: row-reverse and back to same
What color theme is installed in your VS code?
in visual studio code, you don't have to select a line to copy it, just place your cursor at the end of the line without selecting the content there, and hit CTRL C (or x for cut) and it'll be copied. Or, in your case whatever the key is on mac.
wow just figured that, thank you
ty
Wooow thank you I will try it out
Or shift+alt+down/up arrow to copy from above or below
THANK YOU IVE BEEN LOOKING SOOO MUCH ON HOW TO DO THISSS
Very nice video man, thanks. It was so simple mannn!
It's so simple stylings and HTML formatting for header class building.. thank u so much the maker! Really helped. And video ending Subscribe button neon effect u make so coolâïžâš
Exactly what I needed đ
i learnt more from this then i did from an hour long tutorial on css thanks
Thank you so much! Simple steps and clear explanation!
Great professional tutorial. Thank you!
Youâre welcome Eugene! Be sure to check out the new one I posted today about how to make the navbar mobile friendly.
Skillthrive trying to find this video.
Amazing video, in 15 minutes taught me more than cod*cad*my css course!
THANK YOU so much!
Thatâs awesome to hear, Venca!
@@Skillthrive If i may, can I have one question?
How to make fixed navbar while scroling? i used position: fixed, and then all 3 sections came together. Somehow it overwrites justify-content
Thanks for help :))
@@vencalysek7847 It's actually pretty easy using position: sticky. Checkout this link with the code: codesandbox.io/embed/static-72sod
I added comments in the css of what I changed.
@@Skillthrive Thank you very much! :)
Did not know about the order property, thanks
I love this tutorial, it was exactly what I was looking for.
Glad it was helpful!
Thank you so much!!!
it's really nice, thank you
Youâre welcome đ€
Very Helpful demo, bro. Thanks a lot!
cheers been using this as a reference for a much more complicated header and its dumb helpful
Keeping things nice without any bootstrap related stuff! Noce tutorial mate
Glad you liked it!
Im making a portfolio and i was having trouble in the navigation bar
this tutorial is exactly what i needed.
I'm glad I'm not the only one.
Such a great job. Keep the good work!
Thank you! Will do!
Amazing video, and the explanation was FENOMENAL.
Thanks for making this tutorial đ
You're welcome! LMK if you have any questions. đ
@@Skillthrive can u make this responsive?
Itâs possible, I just didnât do it in this course bc I thought it would make the video too long.
Keep an eye out for a video on how to create a responsive menu though. I might do it this week.
Hey, I just published a video on how to make this design mobile friendly: czcams.com/video/WxQZsN6LICM/video.html
does he actually memorize all those hexa.. color codes
With time you learn
He may use those colors frequently so he memorized it already. There's a million of hex codes and no one in the world has memorized them.
Nah pretty sure you can hear his voice shif to a reading tone rather than recalling naturally from memory!
Nope
You surely remember you favorite colors
This is excellent. Clear and concise
So simple, unbelievable, how could I even struggle with this. Thanks for your help!
In the html why did he put the img inside the header? Why can't we put img under nav
@@contraspower6302 If he would've, the Logo would be directly next to the Listend Items (Services, Projects, About).
@@twicegamerlive Thanks for replying brother. But i have one doubt why it is like that?
Wow! Such an awesome nav with such simple code.. Why I don't think that way -_-
bro you actually saved my ass
Beautifully designed and edited video, thanks for the tutorial.
Thank you very much!
Ahhhhhhh the last example was so helpful!!!! Thank you
I kind of wish we got to see more of how this looks on multiple browsers. Such as mobile, tablet, etc. I can make great NAV bars, but designing something that works on other things is hard to do for me.
why not check in inspect
it's not looking good on phone, this is not a responsive design.
@@mustangbs9897 use the @media
use media queries (@media) set max-width: (however many pixels); for optimizing for desktop sizes. if you're optimizing it for mobile use min-height. @@mustangbs9897
You can also adjust paddings, margins, positions, etc...based proportionally instead of by pixel as well
Hey man , great tutorial . Just wondering do you know that the option HTML : 5 under the boilerplate one that you added with the extension in VSC achieves the same result as what you get at 2:14 and you don't have to delete the comments . A quick shortcut with emmet to activate this is - just type ! and press tab at the start of the html page and you get exactly what you need . Just letting you know . Great tutorial though , helped me a load , thanks . Keep it going đ
Emmet is an unreal shortcut that comes pre-installed with VSC , you can also make an ordered list with three li a tags very quickly by typing ul>li*3>a and pressing tab and there you go ! :)
Hey, Adam. Thanks for the kind words. I actually found out Emmet come pre-installed after posting this video, but I honestly don't use it much. I need to practice using it more, though.
@@Skillthrive good thought
Thank you, you did not miss anything and took into account.
Amazing video. I was frustrated so much but this video helped me
How to make responsive bro please tell me
Bruh did you even watch the video
@@Klrfl101 lmao
I feel like joe rogan is teaching me flexbox
I am Joe Rogan.
Incredibly helpful tutorial - good job !
That order property is a godsent! I was banging my head for days trying to create a centre logo navbar
It really is. It's almost a magical CSS property.
So the "li:nth-child(1)" value it's used to give a style only to the first , right?
Yep! đ
You could also use "first-child". I forget the specific syntax. I think it's first-child, but you'll want to verify that.
my logo kind of appears ontop of the navbar? how do I make it be next to it?
edit:
my logo img was inside . it was fixed when I placed it before
great
Expert skill, straight to the point. Subscribed! Will be supporting soon
Thank you! Glad to have you!
thanks for boosting my confidence
Good tutorial, thanks! But there is a slight correction. Button and link are different entities, it makes no sense to place a button inside a link.
Great video, thanks. Newbie question - Right at the beginning, why did you name your folders with an underscore.
So your folders will automatically be alphabetized, but if you put a _ in front of the word it will alphabetize those first. So I like to put my main folders with a _ and less important ones without. You can even add another _ to the existing one and it will start over with those alphabetized first. Kinda like this:
__a
__b
__c
_a
_b
_c
a
b
c
very helpful
thanks you looking forward for more contents
Thanks for your tutorial ! Simple to understand, well explained !
note to self: use this
đ
Thanks bro, i know it seems simple, and I'm pretty proficient with all else html and css, but navbars have just given me hell for some reason. Thanks, you've cleared it up for me.
Wonderful. I learnt new ways of doing the Nav bar.
Excellent content! So easy to follow!
Thanks for such an amazing Video, I just Loved and wanted to me the second kind of navbar.
Thank you so much I thought it was going to be hard and seem pretty easy good detail video makes it so easy to understand â€
Simply Awesome!!
nice tutorial bro
ive been struggling for a while trying to learn css flexbox
So useful, Thank you! :)
very smooth and smart way of coding . i like it too much and very helpful for me .
Thanks a lot! Great Tutorial!
I learned many new things in this video, especially, order...
Thank you, this video has been really instructive.
Just what i need , need to do this. Thanks for tutorial.
Great info and super easy to apply! thank you!
No problem!
Thanks man, very clean and simple!
You bet!
Just awesome bro!!!
This is great navbar. Thank you!
Thanks mate really informational video!
Amazing tutorial! Thank you.
Youâre welcome!