Ciao a tutti di nuovo , costruendo il sito web ho trovato un altro ostacolo:
nell'header ho inserito un immagine ("vaso1") e sopra di essa metterò il titolo che nel codice ho chiamato "NUOVO SITO"...ebbene quando vado a mettere l'effetto opaco sull'immagine di background dell'header ("il vaso1") , pure il text ("NUOVO SITO") diventa opaco!ho usato questo css:
opacity:0.4;
filter:alpha(opacity=40);
è da ore che provo in modi diversi ma l'unica soluzione l'ho trovata su un sito che dice di usare questo codice:
.alpha60 {
/* Fallback for web browsers that don't support RGBa */
background-color: rgb(0, 0, 0);
/* RGBa with 0.6 opacity */
background-color: rgba(0, 0, 0, 0.6);
/* For IE 5.5 - 7*/
filterrogid
XImageTransform.Microsoft.gradient(startColorstr=# 99000000, endColorstr=#99000000);
/* For IE 8*/
-ms-filter: "progidXImageTransform.Microsoft.gradient(startColorstr=# 99000000, endColorstr=#99000000)";
}
Peccato che io non sappia dove metterlo/come applicarlo![]()
ho provato anche a specificare l'opacità del testo (#text) , ma non ha funzionato.
Mille grazie a chi risolve , sto impazzendo![]()
Il codice della pagina è:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {font: normal 16px/1.5em helvetica, arial, sans-serif; background: rgb(232,222,191)}
.container { width:960px; margin:20px auto;
}
.header { text-align:center; background: white; height:100px;
padding:5px; background-image:url('vaso.jpg'); opacity:0.4;
filter:alpha(opacity=40);}
.content { float:left; width:960px; text-align:center; height:400px;
background:white; padding:100px 0px
}
.footer { clear:both; text-align:center; background: rgb(232,222,191); color:black;
height:25px;}
#text {font-size: 20pt; margin: 30px 0px 0px 20px; background-color:rgb(232,222,191); float: left;}
} </style>
</head>
<body>
<div class="container" style="margin-top:-10px">
<div style="margin: 0px 20px 0px 0px" align="right">Italian
English</div>
<div class="header">
<div id="text" align="left">NUOVO SITO</div>
</div>
<div class="content" align="left">
<h2 style="font-size: 10pt">BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA
BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA
BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA</h2>
<div align="left">[img]vaso1.jpg[/img]</div>
</div>
<div class="footer">
<div style="margin: 0px 20px 0px 0px">
<h3 style="font-size: 10pt" align="right">BLA BLA BLA</h3>
</div>
</div>
</div>
</body>
</html>
Inoltre potreste dirmi se lo sto costruendo bene (anche se è ancora scarno xD)? è il mio primo sito che faccio con il block notes e se avete qualche suggerimento da darmi , lo apprezzerò molto. ciao!!

rogid
XImageTransform.Microsoft.gradient(startColorstr=# 99000000, endColorstr=#99000000);
Rispondi quotando
:
