Awesome CSS Search Box Using Only HTML & CSS

Awesome CSS Search Box Using Only HTML & CSS

DarkCode

6 лет назад

1,229,600 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Shahab Hosseini Ashna
Shahab Hosseini Ashna - 02.11.2023 03:02

like

Ответить
Subparticle
Subparticle - 20.09.2023 07:13

This code is cute but not good enough. You only made it to work on "hover", whereas a user will very likely move his louse. On mobile (which is where this kind of minimalistic search bar would even be useful or likely), this doesn't work at all as "hover" events don't typically fire without some trickery with dragging your fingers.
In addition, it can be incredibly annoying in a real website where there will be other elements alongside the navigation bar the search will exist in that keep getting shifter around as the user accidentally moves the mouse over the search bar.

Poorly thought out UX.

A correct implementation would use focus/active instead of "hover", which would ensure the user wants to actually search and will stay that way as long as the user is focused on the search.

Moreover you Will NOT be able to AVOID JS (nor is there any point in trying), when trying to do a search bar (which will likely require an API call anyhow unless you build your site using only <form> like some primate), so you will need JS to detect three is text in the search bar in order to keep it open so the user can see his search.

Also, why use float if you use flex box? Do you understand what each of those do?

Keep working and improving, design wise it looks nice but your implementation is lacking.

Ответить
MADHAVAN J
MADHAVAN J - 12.07.2023 19:52

Can you please tell me sir, if any texts are in the search bar, the bar shouldn't shrink. How can do like that..?

Ответить
Psycho op
Psycho op - 13.06.2023 02:32

❤❤

Ответить
Programador010 Front-End
Programador010 Front-End - 19.02.2023 02:10

Great content, I'm trying to make videos similar to yours, congratulations for the didactics!

Ответить
Code With Umar
Code With Umar - 29.10.2022 16:12

thks for this vedio

Ответить
SG
SG - 09.10.2022 05:31

thanks for tuition but bro how to make search on website conation can you help me

Ответить
Yuvraj Panwar
Yuvraj Panwar - 25.09.2022 06:56

What will come after search

Ответить
Ajay Kumar
Ajay Kumar - 05.08.2022 12:53

Hi

Ответить
adelaide
adelaide - 28.07.2022 11:03

Does this work in php format?

Ответить
Raha afshar
Raha afshar - 21.06.2022 00:54

Thank you

Ответить
Md Shoaib
Md Shoaib - 26.05.2022 18:42

Is this responsive?

Ответить
EFX STATUS
EFX STATUS - 06.05.2022 06:09

Can you share code

Ответить
Soumya deep Roy
Soumya deep Roy - 24.04.2022 14:03

Which application u use for html and CSS

Ответить
Aesthetic Vibes
Aesthetic Vibes - 15.04.2022 06:40

Is it responsive?

Ответить
Rachid Messoussa
Rachid Messoussa - 14.04.2022 10:58

Okay thanks but what if the user is typing in the input and put the cursor outside the search box ?
Have you made a video with an other posibility ?

Ответить
ohohohoho
ohohohoho - 03.04.2022 18:20

THXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX!!!

Ответить
SG Computer science
SG Computer science - 14.03.2022 12:12

Website pr search button kaise lagaye without html css

Ответить
Basit Maqbool
Basit Maqbool - 12.03.2022 20:20

How does it actually work then . Does it search something or it's jus the design?

I also have a search bar but that searches nothing

Ответить
Doğuş Akkaş
Doğuş Akkaş - 12.03.2022 00:36

Thanks <3

Ответить
Sevval Guger
Sevval Guger - 18.02.2022 13:29

👏

Ответить
Amrita queen
Amrita queen - 13.02.2022 15:14

Nice

Ответить
Oluwaseyi Oloje
Oluwaseyi Oloje - 02.02.2022 16:29

The fa fa search doesn't work on my vs code...what do you think?

Ответить
Deus lo Vult
Deus lo Vult - 27.01.2022 02:04

Gracias compa , oajlá puedas subir mas elementos asi <3

Ответить
Haryo Olule
Haryo Olule - 19.01.2022 19:07

big respect

Ответить
Joseph Stalin
Joseph Stalin - 19.12.2021 12:29

Bang yg buat warna background cari nya dimana
Maaf masih pemula

Ответить
Lifesaver 3.0
Lifesaver 3.0 - 18.12.2021 21:25

thanks for this amazing tutorial

Ответить
Taamee
Taamee - 06.12.2021 22:20

Thank you!

Ответить
Shahzad Asghar
Shahzad Asghar - 22.11.2021 06:55

nic

Ответить
Shahzad Asghar
Shahzad Asghar - 16.11.2021 11:10

nicc good

Ответить
Johncelle Herrera
Johncelle Herrera - 27.10.2021 16:58

this is so good :) thank you

Ответить
scuffedv ersion
scuffedv ersion - 22.10.2021 12:18

thank you <3

Ответить
Gabbo144
Gabbo144 - 05.10.2021 16:12

Please the full code

Ответить
A.S.M. FAHIM
A.S.M. FAHIM - 18.09.2021 08:34

Please give me the source code 🤠

Ответить
Mukhtar ahmad
Mukhtar ahmad - 17.09.2021 16:26

Me: who writes : instead of ; and then go mad of what the hell is wrong here

Ответить
Content
Content - 16.09.2021 14:57

How can i only open and close it by clicking (static)(So it does not close instantly after moving the mouse ? )

Ответить
Clement Fanai
Clement Fanai - 10.09.2021 14:28

After learning web development these are the kinda things that catch my eye..

Ответить
Marsa Here
Marsa Here - 09.09.2021 10:04

Never use this type of music again🤦🏻‍♂️

Ответить
Miguel Quintero
Miguel Quintero - 07.09.2021 17:49

and how do I make it work ????

Ответить
Kasrodian Vibes
Kasrodian Vibes - 30.08.2021 09:11

Bro can i get the code??

Ответить
Sarvesh
Sarvesh - 22.08.2021 20:53

How much time it takes to learn CSS

Ответить
melika razavi
melika razavi - 22.08.2021 19:01

You're fabulous!!

Ответить
hoang huy
hoang huy - 22.08.2021 05:28

Thank you .its good

Ответить
Mohsin Graphics Studio
Mohsin Graphics Studio - 15.08.2021 09:20

Its awesome keep up the good work

Ответить