CSS Opacity help!

Status
Not open for further replies.

Snappy

^^^^UpHosting^^^^
Aug 29, 2013
521
43
1f3fc44863ea858f9b63455d0ddbc63d.png
as you can see the background and text are transparent I only want it so the bg is transparent and the text is on the top anyone know?
@Kaz @Sledmore close thread or delete it I found the solution opacity:0.1-0.9
 
Last edited:

FocuZst

New Member
Jan 16, 2015
26
6
The opacity is used to change the opacity of a division or whatever you're using. To change only the background color, you would need to use an rgba. If you're using color white, then type:

HTML:
background: rgba(225, 225, 225, .5);

The .5 is the opacity. Play with it but it only goes up to .99. Hope this answered your question.
 

Sysode

Front-End Developer
Dec 11, 2012
1,673
848
The opacity is used to change the opacity of a division or whatever you're using. To change only the background color, you would need to use an rgba. If you're using color white, then type:

HTML:
background: rgba(225, 225, 225, .5);

The .5 is the opacity. Play with it but it only goes up to .99. Hope this answered your question.
This ^^.

Using opacity is fine for single block elements but when you're having child elements (in most cases text or images inside a div) then it'll effect them as well. If you're just after the background, do what was mentioned above.
 
Status
Not open for further replies.

Users who are viewing this thread

Top