nur background-color soll opacity-Wert haben

rernanded

Erfahrenes Mitglied
Hallo

habe folgendes div:
HTML:
 <div style="position: absolute; width: 666px; height: 130px; top: 300px; left: 30px; padding: 5px; text-align: left;">
     <image-text>Zuhause auf dem Desktop-PC oder unterwegs per Tablet und Smartphone.<br />Immer und überall.</image-text>
  </div>

und in den css für <image-text></image-text> folgende Werte:
image-text {
font-family : arial;
font-size : 25px;
font-style : normal;
font-weight : normal;
color : FFFFFF;
background-color : 0066ff;
opacity : 0.6;
line-height : 30px;
text-transform : uppercase;
}


Mein Problem ist nun das bei dem opacity-Wert von 0.6 leider auch die Schrift-Farbe color : FFFFFF den opacity-Wert annimmt, ich möchte aber das dieser Wert sich nur auf background-color : 0066ff; auswirkt.

MONI
 

Neue Beiträge

Zurück