Total members 11895 |It is currently Mon Dec 30, 2024 3:46 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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>




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  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     -  
 Remove HTML element or Delete its content     -  
 removing focus border from a HTML element     -  
 Get Width and Height -Inner and Outer for HTML element     -  
 checking if a HTML element is visible or hidden under JQuery     -  
 Show hint when focus on html element using JQuery     -  
 Transparent Text     -  
 Making Colors Transparent with imagecolortransparent()     -  



Topic Tags

CSS Align, CSS Font, HTML Paragraph, CSS Border






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
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