Forum : CSS Background
Brief description  about Online courses   join in Online courses
View Santosh  Hegde 's Profile

CSS Background

Dear sir,
I know this technically isn't possible, but is there a way to go around css codes to make the background color transparent, but keep the text color and background image the same ? I have tried multiple things, but I need to get it to work on some page..
please guide me..

Thank you..

Asked by Santosh Hegde | Sep 3, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#newmahi {

position:absolute;
width:590px;

margin-right:auto;
margin-left:auto;


height:230px;
z-index:1;
background-color: #666666;
filter:alpha(opacity=60);
-moz-opacity:.60;opacity:.60;
margin-left:32px;
margin-top:150px;
}

#newmahi2{
position:absolute;

z-index:2;
background-color:#FFFFFF;
margin-left:48px;
margin-top:170px;
color: #666666;
width:540px;
height:180px;
padding-right:10px;
padding-left:10px;
padding-top:10px;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;

}
-->
</style>
</head>

<body>


<div id="newmahi"></div>
<div id="newmahi2">
Hi check this

</div>


</body>
</html>

Try this hop this will solve your problem

Regards


Sep 6, 2010