i need help with a transparent div background | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

i need help with a transparent div background

I'm trying to design a website page using div tags and i want the green background to have a transparent opacity of 0.25 but it keeps turning the text and input boxes transparent. how can i make it so just the background is transparent ?

29th Mar 2017, 11:48 PM
Hoeft Brian
Hoeft Brian - avatar
1 Answer
+ 6
With rgba colors. #div { background-color: rgba (0, 255, 0, 0.25); }
30th Mar 2017, 12:47 AM
Maz
Maz - avatar