Hey guys,
I'm still in the process of learning css and I'm having issues with opacity/transparency. I have a login page with a background image. What I am trying to accomplish is to have the login elements not be transparent but sit on top of a transparent div so the user may still be able to see the background image while having a distinction of where the login form is.
the markup resembles something like this:
<body><!--background image-->
<form class="formform"><!--want form background to be transparent-->
<div>
<table><!--Don't want table to be opaque-->
</table>
</div>
</form>
</body>
the css resembles this:
body
{
font-family: verdana,helvetica,sans-serif;
font-size: 10pt;
text-align:left;
color:black;
margin-top:-1px;
background:url('/Images/blahblah.jpg') no-repeat center center fixed;
-moz-background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
form.formform
{
width:1000px;
height:inherit;
margin:30px auto;
background-color:#E8E8E8;
padding:20px;
border-top-left-radius:12px;
border-top-right-radius:12px;
border-bottom-left-radius:12px;
border-bottom-right-radius:12px;
opacity:.7;
}
The problem is the table of course inherets the traits of formform and everything in the table becomes opaque as well. How do I prevent this? How do I have the outer grey of the form be transparent, but have the table and all its contents be non transparent? Thanks for your help.