<style>
.trans {
filter: alpha(opacity=50); /* internet explorer */
-khtml-opacity: 0.5; /* khtml, old safari */
-moz-opacity: 0.5; /* mozilla, netscape */
opacity: 0.5; /* fx, safari, opera */
}
</style>
<div class="trans" style="display:block; background-color:#000;width:250px; height:82px; padding-top:18px;">
<span style="padding-left:10px;color:#dff4ff;font-size:42px; font-weight:bold;">Woord1</span>
<span style=" font-weight:bold;color:#FFF;font-size:42px;">Woord2</span>
</div>
3.459 views
Ik heb een klein stukje code om een div transparant te maken, alleen nu neemt hij de tekst ook mee. Hoe kan ik de tekst wel gewoon "normaal" zichtbaar laten zijn?