#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
Пікірлер: 99
@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; }
@emmanuelanallemina43217 ай бұрын
How to I copy the code
@rayyanabdulwajid76814 ай бұрын
It's better to use display flex than float.
@MAALIK-ULMULK2 ай бұрын
i like it
@walidwalid1669Ай бұрын
Thank you 🎉
@devd38 ай бұрын
bro cooked and I ate
@Fl_ninja7 ай бұрын
💯 Every vid
@Enryu0714 ай бұрын
Yum
@ChahatkajalwaАй бұрын
I Also Eat but I learn the recipe as well
@evanauli8092Ай бұрын
ZANKS ZQADDDYIE
@rizwinrz846829 күн бұрын
😂😂
@StopWhining4918 ай бұрын
You've got the best step-by-step videos. Thanks for all your work and sharing.
@Legomaniac3593 ай бұрын
Straight to the point. Thank you!
@supreme_wx249918 күн бұрын
IVE BEEN LOOKING FOR THIS SO MUCH. Im so glad l found you bro
@amandapanda37503 ай бұрын
Thanks so much. I've been searching for sooo long to find out how to do this.
@deborahtshiyeya30719 күн бұрын
Thank you for explaining while showing us how to do it. This makes it easier to understand. You are the best❤❤
@richardolajiga31766 ай бұрын
This guy is too good with his explanations
@l-fitness35904 ай бұрын
It’s straight to the point and easy to understand definitely one of the best
@mr.shredder54304 ай бұрын
just the thing i needed thanks for sharing this content👍
@hyzlskyyАй бұрын
the tutorial is simple and straightforward. thank youuuuuu❤❤❤
@maricarlacerna58415 ай бұрын
Finally! A working code! thank you very much for this @Bro Code you save me from failling
@jakry_apexlegends5 ай бұрын
You are a gentleman and a scholar. Thanks
@Freeteechingresiurce874095 ай бұрын
Very good person
@dmojela16254 ай бұрын
Best teacher.... 👌
@ayannasir66538 ай бұрын
Make a video on how to put "LOGO" and adjust its height and width using "CSS" with according to our needs?
@JanviMali15525 күн бұрын
Amazing work
@nicodiangelotheghostking26 ай бұрын
THANKS I NEEDED THIS SO MUCH FOR SCHOOL PROJECT🎉🎉🎉🎉🎉
@amitcoc78403 ай бұрын
Best teacher 🧑🏫
@Asulescu2 ай бұрын
May god bless you ! Thank you save my life seriously
@hertechera3 ай бұрын
Appreciate this, thank you
@abdullahbiswas16 ай бұрын
Thank you for the content
@MdHossainAhmed-sc4ui4 ай бұрын
Very helpful video
@iangabriel10316 ай бұрын
This is what i need!! Thank you so much bro i will subscribe you
@shanepelletier23472 ай бұрын
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Ай бұрын
You're a lifesaver. Thanks!
@AdeelAhmad0007Күн бұрын
amazing
@princeshukraan30992 ай бұрын
Very good,I love him
@bamanbamni5 ай бұрын
it is important to use main (can we use a div instead of main for main content )
@Roblox_oyuncu97info7 ай бұрын
you are legend - thanks
@waltermitty41322 ай бұрын
I don't understand why you added "overflow:hidden" to the CSS file? What is its purpose in this navbar?
@inoscopedjfk8207Ай бұрын
so it doesn't show a scroll bar on the nav bar
@suyashman79648 ай бұрын
Epic bro
@mohaimenpotawan28422 ай бұрын
very kind blogger
@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
@chamnabkem54595 ай бұрын
Thank you!!!
@AdeelAhmad00072 күн бұрын
Nice Video
@NnFace-ql3jo5 ай бұрын
best coder
@ayushlimbu80444 ай бұрын
Thanks bro!
@ayeshasiddika12523 ай бұрын
great
@Vivek_top_0927 күн бұрын
Nice bro
@NaftaliKipkoech5 ай бұрын
Bro had to earn my subscription and he did it
@SpongeknobSquarenut4 ай бұрын
instead of using colors for navigation bar can i use images?
@AdeelAhmad0007Күн бұрын
good
@ethioictmedia4 ай бұрын
it is Good
@nathansimelane5623 ай бұрын
What have I done wrong because my display:block and text align center is not working
@user-cu9pd2kv2q4 ай бұрын
Thx bro
@brightasinde70345 ай бұрын
Sir Please am looking for how to creat contact form email, text using nave element instead of div element ?
@prithurajvidyadas285010 ай бұрын
why did u use "overflow:hidden" can u explain that part like what did u hide exactly?
@omairtech67118 ай бұрын
I want an answer to this as well. He did not explain at all.
@devd38 ай бұрын
it prevents horizontal scrolling
@memefromtheinternet8 ай бұрын
@@devd3 thanks I also needed that
@pholcastaneda36996 ай бұрын
@@devd3 But why does setting the property float:left make it disappear? I don't get it
@cuteminired65502 ай бұрын
Yes exactly @@pholcastaneda3699
@yashaswimohod96473 ай бұрын
Can you make a proper responsive website. It will be easy to add in my projects.😉
@ludwajzsk27588 ай бұрын
👍
@nazmoonnahar9996Ай бұрын
Bro really cooked
@kyonsmith98597 ай бұрын
ty
@user-lg8ms8pw6z2 ай бұрын
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.
@felcynchannel8402 ай бұрын
I believe you want to use flex box to make it more responsive
@chilli_Tea28 күн бұрын
extra challenge: style nav with flexbox
@adejaya1692Ай бұрын
❤
@gian-mm9kr5 ай бұрын
How can I center the nav bar ? the only way i was able to get was creating a div section.
@bqadrat3 ай бұрын
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.
@kiddReyes3 ай бұрын
If I want to float right why does my words reverse
@johnryder84642 ай бұрын
Using floats is not the way to do it. Flexbox takes care of that.
@Pavan-gq3ld20 күн бұрын
I'm getting hover effect on logo how do i get rid of it help mee please ,🙋♀️
@EnderKyo5 ай бұрын
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?
@bqadrat3 ай бұрын
lack of on your second page? Did you solve it?
@EnderKyo3 ай бұрын
@@bqadrat thanks a bunch man I appreciate your comment but I already passed the class so I’m set 😂
@nabinkhadka627011 күн бұрын
Just make a container display flex It's easy
@GiorgiTarielashvili2 ай бұрын
Sigma
@EnderKyo5 ай бұрын
Does anyone know how to keep it vertical and to the left?
@ishwardayalgarg80973 ай бұрын
Adjust width of ul: 30%or 400 px
@haloholahehe42855 ай бұрын
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.😅
@haloholahehe42855 ай бұрын
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.😅
@Pororo17263 ай бұрын
Aowkaowkoakw pake translate ke bahasa Indonesia aja bang
@patriayvida42097 ай бұрын
Is it Responsive bro?
@Peywan6 ай бұрын
Nope
@jivara55236 ай бұрын
You can do it with the flex-box
@SD882376 ай бұрын
1:50
@simonkhemali83924 күн бұрын
Real bro code
@athenadaniellacruz8968Ай бұрын
Why mine isn't working😭😭
@_a.p.o.n17 күн бұрын
Bro chill ofc it doesn't because it's the nature of codding if it works is abnormal