Hello,
I have the following code in a text block and would like the opacity applied to the background only (not the text). Is this possible? Right now the opacity is applied to everything within the div.
<div style=”background: #fff; opacity: 0.5; -moz-opacity: 0.5; filter: alpha(opacity=50); padding: 40px;”>[av_font_icon icon='ue842' font='entypo-fontello' style='border' caption='' link='' linktarget='' size='80px' position='center' color='#ebce3b' custom_class='' admin_preview_bg=''][/av_font_icon]
</div>
Thanks in advance for any suggestions!
Hey kvpacs,
Try to replace this part of your code:
<div style=”background: #fff; opacity: 0.5; -moz-opacity: 0.5; filter: alpha(opacity=50); padding: 40px;”>
replace it with:
<div style=”background: rgba(255,255,255,0.5); -moz-opacity: 0.5; filter: alpha(opacity=50); padding: 40px;”>
But I would suggest using class and then apply css to the class. Hope this helps :)
Best regards,
Nikko
Thank you Nikko! That worked perfectly when applied through a div class.
All the best,
Theresa