The Little Guy Posted July 22, 2010 Share Posted July 22, 2010 anyone know how to make ONLY a background image transparent, and not the text? Quote Link to comment https://forums.phpfreaks.com/topic/208510-transparency/ Share on other sites More sharing options...
haku Posted July 22, 2010 Share Posted July 22, 2010 I'm guessing you mean 'background' and not 'background image'. You have two options: 1) make the background an image with transparency 2) Don't make the text a child of the background. Move it out somewhere, and position it over top the background. Quote Link to comment https://forums.phpfreaks.com/topic/208510-transparency/#findComment-1089441 Share on other sites More sharing options...
The Little Guy Posted July 22, 2010 Author Share Posted July 22, 2010 That is what I thought I had to do I was hoping CSS3 had a way of making the background transparent of an element. in CSS3 they should add... myElement{ background-image: url('/link/to/image.jpg'); background-opacity: 0.8; } What were they thinking Quote Link to comment https://forums.phpfreaks.com/topic/208510-transparency/#findComment-1089736 Share on other sites More sharing options...
papillonstudios Posted July 27, 2010 Share Posted July 27, 2010 heres the way i do it. background: rgba(255, 255, 255, 0.5); I use the RGB Alpha. That code there give you white at 50% opacity Quote Link to comment https://forums.phpfreaks.com/topic/208510-transparency/#findComment-1091793 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.