Learn CSS dropdown menus in 6 minutes! 🔻

  Рет қаралды 69,685

Bro Code

Bro Code

9 ай бұрын

#CSS #course #tutorial
CSS HTML dropdown menu tutorial example explained

Пікірлер: 40
@BroCodez
@BroCodez Жыл бұрын
Bro Code Food Apple Orange Banana /* style.css */ .dropdown{ display: inline-block; } .dropdown button{ background-color: hsl(0, 0%, 80%); color: white; padding: 10px 15px; border: none; cursor: pointer; } .dropdown a{ display: block; color: black; text-decoration: none; padding: 10px 15px; } .dropdown .content{ display: none; position: absolute; background-color: hsl(0, 0%, 95%); min-width: 100px; box-shadow: 2px 2px 5px hsla(0, 0%, 0%, 0.8); } .dropdown:hover .content{ display: block; } .dropdown:hover button{ background-color: hsl(0, 0%, 70%); } .dropdown a:hover{ background-color: hsl(0, 0%, 90%); }
@Honda4Ever
@Honda4Ever Ай бұрын
A simple and quick tutorial. I couldn't need more! Thank you 🙏
@Spacetime23
@Spacetime23 29 күн бұрын
personally, the best and satisfying explanation which I could understand bit by bit. beginner-friendly! thanks a lot bro.
@Blueperry1512
@Blueperry1512 27 күн бұрын
u r the best tutor , I've searched for many video how to create dropdown , your video is magnificent at all.
@jgiixom
@jgiixom 3 ай бұрын
Bro, u r the best!
@khalidelgazzar
@khalidelgazzar Ай бұрын
Great lesson. Thank you
@mariafortes1133
@mariafortes1133 2 ай бұрын
Thanks for the video!
@_izro_
@_izro_ 5 ай бұрын
Best Explanation Love From Pakistan
@cs8529
@cs8529 7 ай бұрын
Thanks for sharing Bro.
@smartgadgets5996
@smartgadgets5996 6 ай бұрын
Hello.. please make a video auto slide image... I dont get what they teach..you are a good teacher and teach the simple understanding way for us.. thank you
@okhakhugaruba8551
@okhakhugaruba8551 17 күн бұрын
Thank you for this lecture. It really helped me ❤
@suyashman7964
@suyashman7964 9 ай бұрын
Epic bro
@mswondo
@mswondo 8 ай бұрын
I try to use focus-within to replace the javascript. But we must click on it to appear the pulldown/drop down. And using left, right, top, bottom; I try to control the direction of the dropdown. It's may be : drop down to left, drop down to right, drop up to left, drop up to right.
@davidhusted817
@davidhusted817 7 ай бұрын
You must to add a third parameter for the addeventlistener to "false" , because the default event is bubbling , {From the parent to child}
@mswondo
@mswondo 7 ай бұрын
@@davidhusted817 I think its not necessary. Because if the anchor is a link with href, so its not have sub menu on it. So its a reguler link thats no need to stop the event bubble. But if the anchor has sub menu, its no need href so no event need to listener. An anchor automatic have behaviour that focused when after clicked. If we want to ensure that, we can use attribute : tabindex="0". So focus-within will automatically show or hidden sub menu.
@DubZinio
@DubZinio 5 ай бұрын
ty so much dude lu
@daru3112
@daru3112 4 ай бұрын
thank you bro God bless
@zahid1909
@zahid1909 6 ай бұрын
You are a real Master, bro! Respect!!
@mitskifan2003
@mitskifan2003 4 ай бұрын
Thank you!!!!!!!💓💕💞💖💗💓
@ThomasIkemann
@ThomasIkemann 6 ай бұрын
04:50 I did not know you can do something like that, thank you!
@hameeeed5992
@hameeeed5992 9 ай бұрын
Thanks
@ruzalshrestha1998
@ruzalshrestha1998 3 ай бұрын
God bless u
@danielleburchett6837
@danielleburchett6837 3 ай бұрын
Hello, do you know if this will work in a form in Squarespace? Squarespace has a form with a dropdown menu as an option, but I want the drop down menu to be searchable so when you start typing the dropdown menu will only display the words with those characters.
@xarloz3248
@xarloz3248 4 ай бұрын
what if i want to change the size all in all?
@HeroXI880
@HeroXI880 4 ай бұрын
bro what if we want to add icons on the drop down, can u please tell ?
@vyvy3130
@vyvy3130 Жыл бұрын
Thanks you!
@pjunior6865
@pjunior6865 6 ай бұрын
thanks
@birgersandman2662
@birgersandman2662 7 ай бұрын
Thanks bro
@alonneintokyo1821
@alonneintokyo1821 7 ай бұрын
he is a man of code
@jidanmaulanas.103
@jidanmaulanas.103 6 ай бұрын
Thanks sir🫡
@minicinnibun
@minicinnibun 6 ай бұрын
i luv u
@user-mo6yo4kz1m
@user-mo6yo4kz1m 8 ай бұрын
it says the video was released 9 days ago and yalls comments are months old 💀
@Yumiesthetic
@Yumiesthetic 8 ай бұрын
it was unlisted then went to public again according to some comment
@mephistergt3614
@mephistergt3614 7 ай бұрын
Lol yea, I saw comments 5 months ago but the video is uploaded 2 month ago 😂
@itzyuzuruclips
@itzyuzuruclips 5 ай бұрын
Damm
@Khodepp
@Khodepp 10 ай бұрын
Hi can you tell me how can I move the drop-down menu to left(left of the button) it only goes right
@user-mo6yo4kz1m
@user-mo6yo4kz1m 8 ай бұрын
in .dropdown a{ } try using display:inline-block;
@yasotube
@yasotube Жыл бұрын
Didn't know that 😅
@user-wz9fo1eg1q
@user-wz9fo1eg1q Жыл бұрын
tao không hiểu tiếng anh
@user-sr9nh3lc2x
@user-sr9nh3lc2x 9 ай бұрын
,👌👌👌👌👌👌👌👌👌👌👌👌👌👍👍👍👏👏
How to create a CSS navigation bar in 6 minutes! 🧭
6:28
Bro Code
Рет қаралды 227 М.
How To Make Drop Down Menu Using HTML And CSS | HTML Website Tutorials
21:24
3 wheeler new bike fitting
00:19
Ruhul Shorts
Рет қаралды 48 МЛН
Final muy increíble 😱
00:46
Juan De Dios Pantoja 2
Рет қаралды 34 МЛН
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 57 МЛН
Learn CSS pagination in 8 minutes! 🕮
8:59
Bro Code
Рет қаралды 18 М.
Convert .py to .exe in 37 seconds!
0:37
Practical Coding
Рет қаралды 39 М.
Simple Dropdown Menu Using HTML & CSS - EASY TUTORIAL
9:41
Devression
Рет қаралды 39 М.
How To Make Drop Down Menu Using HTML And CSS
8:37
Light Code
Рет қаралды 364 М.
Custom select menu - CSS only
17:40
Kevin Powell
Рет қаралды 145 М.
Learn CSS overflow in 3 minutes! 🌊
3:24
Bro Code
Рет қаралды 17 М.
Navbar CSS Tutorial: 3 Ways to Create a Navigation Bar with Flexbox
15:08
Easiest Dropdown Hover Menu with HTML CSS Only
4:22
Code With Random
Рет қаралды 79 М.
3 wheeler new bike fitting
00:19
Ruhul Shorts
Рет қаралды 48 МЛН