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? 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. 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 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 Link to comment https://forums.phpfreaks.com/topic/208510-transparency/#findComment-1091793 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.