#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
Пікірлер: 85
@BroCodez11 ай бұрын
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; }
@emmanuelanallemina43216 ай бұрын
How to I copy the code
@rayyanabdulwajid76813 ай бұрын
It's better to use display flex than float.
@iamhere090Ай бұрын
i like it
@walidwalid166916 күн бұрын
Thank you 🎉
@zoroskrx7 ай бұрын
bro cooked and I ate
@Fl_ninja6 ай бұрын
💯 Every vid
@Enryu0713 ай бұрын
Yum
@Chahatkajalwa6 күн бұрын
I Also Eat but I learn the recipe as well
@evanauli80925 күн бұрын
ZANKS ZQADDDYIE
@rizwinrz84683 күн бұрын
😂😂
@StopWhining4917 ай бұрын
You've got the best step-by-step videos. Thanks for all your work and sharing.
@Legomaniac3592 ай бұрын
Straight to the point. Thank you!
@amandapanda37502 ай бұрын
Thanks so much. I've been searching for sooo long to find out how to do this.
@mr.shredder54304 ай бұрын
just the thing i needed thanks for sharing this content👍
@suyashman79647 ай бұрын
Epic bro
@dmojela16253 ай бұрын
Best teacher.... 👌
@maricarlacerna58414 ай бұрын
Finally! A working code! thank you very much for this @Bro Code you save me from failling
@MdHossainAhmed-sc4ui3 ай бұрын
Very helpful video
@nicodiangelotheghostking25 ай бұрын
THANKS I NEEDED THIS SO MUCH FOR SCHOOL PROJECT🎉🎉🎉🎉🎉
@abdullahbiswas15 ай бұрын
Thank you for the content
@amitcoc78402 ай бұрын
Best teacher 🧑🏫
@hyzlskyy12 күн бұрын
the tutorial is simple and straightforward. thank youuuuuu❤❤❤
@richardolajiga31765 ай бұрын
This guy is too good with his explanations
@l-fitness35903 ай бұрын
It’s straight to the point and easy to understand definitely one of the best
@Asulescu2 ай бұрын
May god bless you ! Thank you save my life seriously
@ayannasir66537 ай бұрын
Make a video on how to put "LOGO" and adjust its height and width using "CSS" with according to our needs?
@hertechera2 ай бұрын
Appreciate this, thank you
@jakry_apexlegends4 ай бұрын
You are a gentleman and a scholar. Thanks
@Freeteechingresiurce874094 ай бұрын
Very good person
@iangabriel10315 ай бұрын
This is what i need!! Thank you so much bro i will subscribe you
@mohaimenpotawan2842Ай бұрын
very kind blogger
@Roblox_oyuncu97info6 ай бұрын
you are legend - thanks
@ayushlimbu80443 ай бұрын
Thanks bro!
@princeshukraan3099Ай бұрын
Very good,I love him
@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
@flinch971026 күн бұрын
You're a lifesaver. Thanks!
@NnFace-ql3jo4 ай бұрын
best coder
@chamnabkem54594 ай бұрын
Thank you!!!
@Vivek_top_09Күн бұрын
Nice bro
@ayeshasiddika12522 ай бұрын
great
@ludwajzsk27587 ай бұрын
👍
@ethioictmedia3 ай бұрын
it is Good
@user-cu9pd2kv2q3 ай бұрын
Thx bro
@bamanbamni4 ай бұрын
it is important to use main (can we use a div instead of main for main content )
@NaftaliKipkoech5 ай бұрын
Bro had to earn my subscription and he did it
@waltermitty4132Ай бұрын
I don't understand why you added "overflow:hidden" to the CSS file? What is its purpose in this navbar?
@inoscopedjfk820726 күн бұрын
so it doesn't show a scroll bar on the nav bar
@adejaya169225 күн бұрын
❤
@yashaswimohod96472 ай бұрын
Can you make a proper responsive website. It will be easy to add in my projects.😉
@kyonsmith98596 ай бұрын
ty
@SpongeknobSquarenut3 ай бұрын
instead of using colors for navigation bar can i use images?
@nazmoonnahar99963 күн бұрын
Bro really cooked
@chilli_TeaКүн бұрын
extra challenge: style nav with flexbox
@brightasinde70344 ай бұрын
Sir Please am looking for how to creat contact form email, text using nave element instead of div element ?
@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.
@felcynchannel840Ай бұрын
I believe you want to use flex box to make it more responsive
@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
@johnryder8464Ай бұрын
Using floats is not the way to do it. Flexbox takes care of that.
@nathansimelane5622 ай бұрын
What have I done wrong because my display:block and text align center is not working
@gian-mm9kr5 ай бұрын
How can I center the nav bar ? the only way i was able to get was creating a div section.
@bqadrat2 ай бұрын
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.
@kiddReyes2 ай бұрын
If I want to float right why does my words reverse
@GiorgiTarielashviliАй бұрын
Sigma
@haloholahehe42854 ай бұрын
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.😅
@haloholahehe42854 ай бұрын
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.😅
@Pororo17262 ай бұрын
Aowkaowkoakw pake translate ke bahasa Indonesia aja bang
@prithurajvidyadas28509 ай бұрын
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.
@zoroskrx7 ай бұрын
it prevents horizontal scrolling
@memefromtheinternet7 ай бұрын
@@zoroskrx thanks I also needed that
@pholcastaneda36995 ай бұрын
@@zoroskrx But why does setting the property float:left make it disappear? I don't get it
@cuteminired6550Ай бұрын
Yes exactly @@pholcastaneda3699
@SD882375 ай бұрын
1:50
@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?
@bqadrat2 ай бұрын
lack of on your second page? Did you solve it?
@EnderKyo2 ай бұрын
@@bqadrat thanks a bunch man I appreciate your comment but I already passed the class so I’m set 😂
@athenadaniellacruz896813 күн бұрын
Why mine isn't working😭😭
@patriayvida42096 ай бұрын
Is it Responsive bro?
@Peywan5 ай бұрын
Nope
@jivara55235 ай бұрын
You can do it with the flex-box
@EnderKyo4 ай бұрын
Does anyone know how to keep it vertical and to the left?