Floating labels #40966
Answered
by
ynng3
viniciusjdebiasi
asked this question in
Q&A
Floating labels
#40966
-
Beta Was this translation helpful? Give feedback.
Answered by
ynng3
Oct 23, 2024
Replies: 1 comment 1 reply
-
As an example, let's assume we want to apply a transparent background to floating labels and write the code accordingly. Access the element using the .form-floating>.form-control:focus~label::after { background-color: transparent; } |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
viniciusjdebiasi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As an example, let's assume we want to apply a transparent background to floating labels and write the code accordingly.
Access the element using the
:after
pseudo-selector as shown in the code below.