Тёмный

How to create a CSS navigation bar in 6 minutes! 🧭 

Bro Code
Подписаться 1,8 млн
Просмотров 184 тыс.
50% 1

#CSS #tutorial #course
This is not a responsive navigation bar. It's meant to be an exercise for beginners to build a very basic navbar.
HTML CSS nav navigation tutorial example explained

Опубликовано:

 

20 сен 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 91   
@BroCodez
@BroCodez Год назад
Bro Code Bro Code Home About Products Contact This is the Home page Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsam minus eveniet recusandae dicta similique numquam voluptas quos tempore cupiditate pariatur, laudantium fugit alias quia veritatis nesciunt quaerat molestias adipisci assumenda. /* style.css */ body{ margin: 0px; } main{ margin-left: 20px; margin-right: 20px; } h1{ text-align: center; } .navbar ul{ list-style-type: none; background-color: hsl(0, 0%, 25%); padding: 0px; margin: 0px; overflow: hidden; } .navbar a{ color: white; text-decoration: none; padding: 15px; display: block; text-align: center; } .navbar a:hover{ background-color: hsl(0, 0%, 10%); } .navbar li{ float: left; }
@emmanuelanallemina4321
@emmanuelanallemina4321 7 месяцев назад
How to I copy the code
@rayyanabdulwajid7681
@rayyanabdulwajid7681 3 месяца назад
It's better to use display flex than float.
@MAALIK-ULMULK
@MAALIK-ULMULK 2 месяца назад
i like it
@walidwalid1669
@walidwalid1669 27 дней назад
Thank you 🎉
@zoroskrx
@zoroskrx 7 месяцев назад
bro cooked and I ate
@Fl_ninja
@Fl_ninja 6 месяцев назад
💯 Every vid
@Enryu071
@Enryu071 4 месяца назад
Yum
@Chahatkajalwa
@Chahatkajalwa 18 дней назад
I Also Eat but I learn the recipe as well
@evanauli8092
@evanauli8092 16 дней назад
ZANKS ZQADDDYIE
@rizwinrz8468
@rizwinrz8468 14 дней назад
😂😂
@StopWhining491
@StopWhining491 7 месяцев назад
You've got the best step-by-step videos. Thanks for all your work and sharing.
@amandapanda3750
@amandapanda3750 3 месяца назад
Thanks so much. I've been searching for sooo long to find out how to do this.
@Legomaniac359
@Legomaniac359 3 месяца назад
Straight to the point. Thank you!
@supreme_wx2499
@supreme_wx2499 3 дня назад
IVE BEEN LOOKING FOR THIS SO MUCH. Im so glad l found you bro
@mr.shredder5430
@mr.shredder5430 4 месяца назад
just the thing i needed thanks for sharing this content👍
@deborahtshiyeya307
@deborahtshiyeya307 3 дня назад
Thank you for explaining while showing us how to do it. This makes it easier to understand. You are the best❤❤
@ayannasir6653
@ayannasir6653 7 месяцев назад
Make a video on how to put "LOGO" and adjust its height and width using "CSS" with according to our needs?
@maricarlacerna5841
@maricarlacerna5841 5 месяцев назад
Finally! A working code! thank you very much for this @Bro Code you save me from failling
@JanviMali155
@JanviMali155 10 дней назад
Amazing work
@nicodiangelotheghostking2
@nicodiangelotheghostking2 6 месяцев назад
THANKS I NEEDED THIS SO MUCH FOR SCHOOL PROJECT🎉🎉🎉🎉🎉
@hyzlskyy
@hyzlskyy 23 дня назад
the tutorial is simple and straightforward. thank youuuuuu❤❤❤
@richardolajiga3176
@richardolajiga3176 6 месяцев назад
This guy is too good with his explanations
@l-fitness3590
@l-fitness3590 4 месяца назад
It’s straight to the point and easy to understand definitely one of the best
@dmojela1625
@dmojela1625 3 месяца назад
Best teacher.... 👌
@suyashman7964
@suyashman7964 7 месяцев назад
Epic bro
@Asulescu
@Asulescu 2 месяца назад
May god bless you ! Thank you save my life seriously
@jakry_apexlegends
@jakry_apexlegends 5 месяцев назад
You are a gentleman and a scholar. Thanks
@Freeteechingresiurce87409
@Freeteechingresiurce87409 5 месяцев назад
Very good person
@MdHossainAhmed-sc4ui
@MdHossainAhmed-sc4ui 3 месяца назад
Very helpful video
@iangabriel1031
@iangabriel1031 5 месяцев назад
This is what i need!! Thank you so much bro i will subscribe you
@abdullahbiswas1
@abdullahbiswas1 5 месяцев назад
Thank you for the content
@hertechera
@hertechera 3 месяца назад
Appreciate this, thank you
@amitcoc7840
@amitcoc7840 3 месяца назад
Best teacher 🧑‍🏫
@bamanbamni
@bamanbamni 4 месяца назад
it is important to use main (can we use a div instead of main for main content )
@Vivek_top_09
@Vivek_top_09 12 дней назад
Nice bro
@Roblox_oyuncu97info
@Roblox_oyuncu97info 6 месяцев назад
you are legend - thanks
@mohaimenpotawan2842
@mohaimenpotawan2842 Месяц назад
very kind blogger
@princeshukraan3099
@princeshukraan3099 2 месяца назад
Very good,I love him
@NaftaliKipkoech
@NaftaliKipkoech 5 месяцев назад
Bro had to earn my subscription and he did it
@ayushlimbu8044
@ayushlimbu8044 3 месяца назад
Thanks bro!
@NnFace-ql3jo
@NnFace-ql3jo 4 месяца назад
best coder
@ludwajzsk2758
@ludwajzsk2758 7 месяцев назад
👍
@ayeshasiddika1252
@ayeshasiddika1252 3 месяца назад
great
@waltermitty4132
@waltermitty4132 Месяц назад
I don't understand why you added "overflow:hidden" to the CSS file? What is its purpose in this navbar?
@inoscopedjfk8207
@inoscopedjfk8207 Месяц назад
so it doesn't show a scroll bar on the nav bar
@chamnabkem5459
@chamnabkem5459 5 месяцев назад
Thank you!!!
@ethioictmedia
@ethioictmedia 3 месяца назад
it is Good
@SpongeknobSquarenut
@SpongeknobSquarenut 4 месяца назад
instead of using colors for navigation bar can i use images?
@user-cu9pd2kv2q
@user-cu9pd2kv2q 3 месяца назад
Thx bro
@shanepelletier2347
@shanepelletier2347 Месяц назад
for anyone trying to make this responsive: body{ margin: 0px; } main{ margin-left: 20px; margin-right: 20px; } h1{ text-align: center; } .navbar{ background-color: hsl(0, 0%, 25%); } .navbar ul{ list-style: none; padding: 0px; margin: 0px; display: inline-flex; } .navbar a{ color: white; text-decoration: none; padding: 15px; display: block; text-align: center; } .navbar a:hover{ background-color: hsl(0, 0%, 10%); } this uses flexbox and added .navbar{} so the background color stretches across the webpage
@flinch9710
@flinch9710 Месяц назад
You're a lifesaver. Thanks!
@brightasinde7034
@brightasinde7034 4 месяца назад
Sir Please am looking for how to creat contact form email, text using nave element instead of div element ?
@prithurajvidyadas2850
@prithurajvidyadas2850 9 месяцев назад
why did u use "overflow:hidden" can u explain that part like what did u hide exactly?
@omairtech6711
@omairtech6711 8 месяцев назад
I want an answer to this as well. He did not explain at all.
@zoroskrx
@zoroskrx 7 месяцев назад
it prevents horizontal scrolling
@memefromtheinternet
@memefromtheinternet 7 месяцев назад
@@zoroskrx thanks I also needed that
@pholcastaneda3699
@pholcastaneda3699 5 месяцев назад
@@zoroskrx But why does setting the property float:left make it disappear? I don't get it
@cuteminired6550
@cuteminired6550 2 месяца назад
Yes exactly ​@@pholcastaneda3699
@yashaswimohod9647
@yashaswimohod9647 2 месяца назад
Can you make a proper responsive website. It will be easy to add in my projects.😉
@user-lg8ms8pw6z
@user-lg8ms8pw6z 2 месяца назад
Hi Bro Codez, Your tutorials is awesome. Please clarify my doubt, Some of the using Flexbox and Grid to align the navbar button but you didn't use that so please explain which is correct.
@felcynchannel840
@felcynchannel840 Месяц назад
I believe you want to use flex box to make it more responsive
@adejaya1692
@adejaya1692 Месяц назад
@asa-od9pu
@asa-od9pu Месяц назад
How do I center the navigation br in the center of my webpage, it wants to all shift to the side but I want it to be about 100 pixels long and center with h1
@nazmoonnahar9996
@nazmoonnahar9996 15 дней назад
Bro really cooked
@chilli_Tea
@chilli_Tea 12 дней назад
extra challenge: style nav with flexbox
@nathansimelane562
@nathansimelane562 2 месяца назад
What have I done wrong because my display:block and text align center is not working
@gian-mm9kr
@gian-mm9kr 5 месяцев назад
How can I center the nav bar ? the only way i was able to get was creating a div section.
@bqadrat
@bqadrat 2 месяца назад
Try this: .navbar li{ float: left; width: 25%; } Of course 25% is for 4 elements as it equals 1/4 :) You can also enter: .navbar ul { display: flex; justify-content: center; } and then try lower the width percent to see the result and fit it to your expectations.
@Pavan-gq3ld
@Pavan-gq3ld 5 дней назад
I'm getting hover effect on logo how do i get rid of it help mee please ,🙋‍♀️
@kyonsmith9859
@kyonsmith9859 7 месяцев назад
ty
@EnderKyo
@EnderKyo 5 месяцев назад
My styled nav bar isn’t showing up on my second page the links are there it just isn’t styled like the home page, any thoughts?
@bqadrat
@bqadrat 2 месяца назад
lack of on your second page? Did you solve it?
@EnderKyo
@EnderKyo 2 месяца назад
@@bqadrat thanks a bunch man I appreciate your comment but I already passed the class so I’m set 😂
@johnryder8464
@johnryder8464 2 месяца назад
Using floats is not the way to do it. Flexbox takes care of that.
@kiddReyes
@kiddReyes 2 месяца назад
If I want to float right why does my words reverse
@GiorgiTarielashvili
@GiorgiTarielashvili Месяц назад
Sigma
@patriayvida4209
@patriayvida4209 6 месяцев назад
Is it Responsive bro?
@Peywan
@Peywan 6 месяцев назад
Nope
@jivara5523
@jivara5523 6 месяцев назад
You can do it with the flex-box
@haloholahehe4285
@haloholahehe4285 4 месяца назад
Damn I envy those who can speak English :( Please add Indonesian subtitles 🙏, especially lessons about the 24-hour,12-hour,or 8-hour Java course, Java script, PHP, and others.😅
@haloholahehe4285
@haloholahehe4285 4 месяца назад
Your video is really great and I want to learn it but I have problems with the English it uses, especially the programming language lessons I want to learn.😅
@Pororo1726
@Pororo1726 2 месяца назад
Aowkaowkoakw pake translate ke bahasa Indonesia aja bang
@SD88237
@SD88237 6 месяцев назад
1:50
@EnderKyo
@EnderKyo 5 месяцев назад
Does anyone know how to keep it vertical and to the left?
@ishwardayalgarg8097
@ishwardayalgarg8097 2 месяца назад
Adjust width of ul: 30%or 400 px
@athenadaniellacruz8968
@athenadaniellacruz8968 25 дней назад
Why mine isn't working😭😭
@_a.p.o.n
@_a.p.o.n 2 дня назад
Bro chill ofc it doesn't because it's the nature of codding if it works is abnormal
@AlThePal78
@AlThePal78 4 месяца назад
you could of just put margin: 0 20px;
Далее
CSS website layout in 9 minutes! 🗺️
9:28
Просмотров 52 тыс.
I'm Now Using React Native
2:11
Просмотров 303
How to Create Navbar in HTML and CSS
6:15
Просмотров 189 тыс.
Learn CSS Flexbox in 6 Minutes
6:04
Просмотров 25 тыс.
Learn CSS dropdown menus in 6 minutes! 🔻
6:36
Просмотров 57 тыс.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 878 тыс.
Create a clean, modern navigation with HTML & CSS
25:17
Learn Flexbox CSS in 8 minutes
8:16
Просмотров 1,3 млн