Switch to full style
CSS code examples
Post a reply

opacity of HTML element- transparent

Sat Jan 05, 2013 10:35 pm

Make an web page content transparent
css code
<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>




Post a reply
  Related Posts  to : opacity of HTML element- transparent
 Change and get html content of element     -  
 Get the position of HTML element using JQuery     -  
 How to make html element hidden using CSS     -  
 removing focus border from a HTML element     -  
 Get Width and Height -Inner and Outer for HTML element     -  
 Remove HTML element or Delete its content     -  
 Show hint when focus on html element using JQuery     -  
 checking if a HTML element is visible or hidden under JQuery     -  
 Transparent Text     -  
 Making Colors Transparent with imagecolortransparent()     -  

Topic Tags

CSS Border, CSS Align, CSS Font, HTML Paragraph