Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
CSS
2022-03-16 11:15:10
how to highlight input on focus with box shadow
.form-section-input { transition: box-shadow 300ms ease-out; } .form-section-input:focus { box-shadow: 0px 0px 5px var(--light-blue-bg-color); }
Add solution
CSS
2021-11-21 20:29:30
css variables
:root { --main-bg-color: coral; } #div1 { background-color: var(--main-bg-color); } #div2 { background-color: var(--main-bg-color); }
Add solution
CSS
2021-10-28 22:26:09
background css property shorthand
background: bg-color bg-image position/bg-size bg-repeat bg-origin bg-clip bg-attachment initial|inherit;
Add solution
CSS
2021-10-12 10:45:05
css variable
:root { --main-bg-color: coral; } #div1 { background-color: var(--main-bg-color); } #div2 { background-color: var(--main-bg-color); }
Add solution
CSS
2021-09-16 15:13:02
css set variable
:root { --main-bg-color: coral; } #div1 { background-color: var(--main-bg-color); } #div2 { background-color: var(--main-bg-color); }
Add solution
CSS
2021-09-14 07:42:03
css custom properties
:root { --main-bg-color: pink; } body { background-color: var(--main-bg-color); }
Add solution
Best helpers
daily
weekly
monthly
for 3 months
Janell
+5
Tri cultural
+5
Tom Pace
+5
Savoie
+5
O4tlulz
+5
MohitC
+5
Apsillers
+5
Ken Joe
+5
Emory Ozsevim
+5
Leevit2bvr
+5
Hayden
+5
Uhtred Ragnarsson
+5
ADG
+5
show more
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.