come da titolo sapreste dirmi se è possibile impostare l'opacità solo ad un background di un div senza che diventi opacizzato anche il contenuto del div?
avevo pensato a fare una cosa del genere ma non funxziona ; ;
codice:<html> <head> <style type="text/css"> div.background { width: 500px; height: 250px; background: url(klematis.jpg) repeat; border: 2px solid black; } div.transbox { width: 400px; height: 180px; margin: 30px 50px; background-color: #ffffff; border: 1px solid black; filter:alpha(opacity=60); opacity:0.6; } div.transbox p{ margin: 30px 40px; font-weight: bold; color: #000000; filter:alpha(opacity=100); opacity:1; } </style> </head> <body><div class="background"> <div class="transbox"> This is some text that is placed in the transparent box. This is some text that is placed in the transparent box. This is some text that is placed in the transparent box. </p> </div> </body> </html>

Rispondi quotando