Sat Jan 05, 2013 10:35 pm
<html>
<head>
<title>Change CSS Properties- element opacity of HTML element- transparent </title>
<style type="text/css">
p.opacityClass
{
font-size:xx-large;
font-weight:bold;
background:#BC6201;
height:400px;
width:400px;
border:1px solid #454FF4;
text-align:center;
text-decoration: underline;
color:red;
filter: alpha(opacity=30); /* MSIE/PC */
-moz-opacity: 0.3; /* Mozilla 1.6 and older */
opacity: 0.3;
}
</style>
</head>
<body>
<p class="opacityClass">This paragraph is affected
by CSS class1 opacityClass( Note the transparent of this paragraph content</p>
<p> This text is inside a html element not affected by any CSS class<p>
</body>
</html>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.