Thread has been deleted
Last comment
Pro Frontends Come
Kyrgyzstan StaringAtTheSun 
how to select that state: html <div class="inputBox"> <input type="email" required name="email" id="email"> <i class="fa-solid fa-envelope"></i> <label for="email">email address</label> </div> css .login-card .form .inputBox input:not(:focus):not(:empty):invalid ~ label, .login-card .form .inputBox input:focus ~ label { color: #00dfc4; border: 1px solid; background: var(--clr-main--dark); transform: translate(0 ,-150%); font-size: 0.8rem; letter-spacing: 0.1em; border-radius: 1em; padding:0 0.5em; } why this is not working, i basically want to label move up if its invalid email, but not when it's empty input
2023-03-29 04:55
Topics are hidden when running Sport mode.
ChatGPT is useless btw
2023-03-29 04:56
2 replies
Have you tried chatgpt 4
2023-03-30 14:21
1 reply
it's not free as far as I know
2023-03-30 14:21
#2
 | 
Brazil ZerongBr
i think reddit will help you more than hltv man
2023-03-29 05:02
3 replies
dude, who uses reddit?, I don't melt my brain yet hltv is good but not interesting hours now
2023-03-29 05:05
2 replies
#4
 | 
Brazil ZerongBr
hltv is like reddit but for cs mens, i use reddit only for small things like suzerain, harmony etc, not that big of a deal
2023-03-29 05:05
Tons of people as you have tons of different stuff to discuss about on reddit, i dont remember people on hltv talking about deep subjects unlike reddit
2023-03-30 14:19
bump
2023-03-30 08:50
#6
 | 
Russia Riblion
Bump
2023-03-30 08:53
#7
 | 
India slavloli
I hate css so much try stackexchange
2023-03-30 09:00
1 reply
yeah ppl told to do it in JS, but I still wonder is there CSS solution
2023-03-30 09:56
#9
 | 
North Macedonia Xyp3x
idk why struggle with only CSS, you can do this with JS easily, but I think you need to wrap that input in a form <form> <input type="email" required name="email" id="email"> <i class="fa-solid fa-envelope"></i> <label for="email">email address</label> -- and add a submit button -- <button type="submit">Click</button> </form> so when you click the button, the given requirements with execute, meaning the required/not valid conditions will check if true In pure JS or frameworks there is much easier ways to do this
2023-03-30 10:05
5 replies
#10
 | 
North Macedonia Xyp3x
I just tried it out, and you are missing -> display: block;
2023-03-30 10:11
4 replies
on what label?
2023-03-30 10:23
3 replies
#12
 | 
North Macedonia Xyp3x
.login-card .form .inputBox input:not(:focus):not(:empty):invalid ~ label, .login-card .form .inputBox input:focus ~ label { display: block; ----- but be sure to wrap the input in a form
2023-03-30 14:13
2 replies
I will check later, im going to sleep now, but thank you ! 🙌 if that works of course
2023-03-30 14:19
1 reply
#18
 | 
North Macedonia Xyp3x
if you add display:block, on click on input the label will go above it
2023-03-30 15:19
just put your information in hltv thread and link your domain to thread ez without any webdev skills
2023-03-30 14:27
Login or register to add your comment to the discussion.
Now playing
Thumbnail for stream
Brazil
gaules
29975 viewers
Top streams
All(47)
Casters(35)
Streamers(7)
Organizers(5)
Brazil
gaules
(29975)
United Kingdom
ESL TV
(18333)
Argentina
forg1
(7326)
Russia
Paragon
(2929)
Other
CCT 2
(1920)
Russia
Aunkere
(1760)
Turkey
ESL TV
(1449)
Brazil
nak
(1412)
Russia
zoneR
(1389)
United Kingdom
psp1g
(1334)
Germany
TrilluXe
(1299)
Other
FURIOUSSS
(997)
Spain
ESL TV
(923)
Russia
del1ght
(907)
United Kingdom
CCT
(731)
Russia
watchfulTV
(714)
Ukraine
Maincast
(496)
Russia
Dima
(463)
Denmark
Astralis
(427)
Russia
Winline 2
(380)
Sweden
Esportal
(355)
France
MGG
(305)
Brazil
mch
(303)
Russia
interz
(262)
Poland
PLE
(257)
Brazil
Jogando Junto
(205)
Turkey
ESL TV (YouTube)
(196)
Poland
Troglodyta
(174)
Israel
shushan
(148)
Russia
NarodCast4
(147)
Other
Vikingz_Odin
(140)
Russia
Winline
(132)
Ukraine
L&G
(114)
United States
JoJo
(113)
Iceland
Rafithrottir
(74)
Slovakia
WeWeR1cKa
(63)
Ukraine
IKLA
(67)
Ukraine
Maincast 2
(60)
Serbia
A1 Adria League (YouTube)
(48)
Brazil
BTSBrasilCSGO
(39)
Brazil
gaules TV 3
(25)
Other
Vearless
(24)
United Kingdom
CCT (YouTube)
(24)
Czech Republic
boostbend
(22)
Brazil
BTSBrasilFPS
(16)
Brazil
VelhoZennoN
(10)
Poland
PLE (YouTube)
(4)