Jump to content

Override Opacity


seventheyejosh

Recommended Posts

Yes. But you will need to style the <p>

 

div.trans
  {
  width:400px;
  height:180px;
  margin:30px 50px;
  background-color:#ffffff;
  border:1px solid black;
  /* for IE */
  filter:alpha(opacity=60);
  /* CSS3 standard */
  opacity:0.6;
  }
div.trans p
  {
  margin:30px 40px;
  font-weight:bold;
  color:#000000;
  }
</style>
</head>

<body>

<div class="trans">
<p>Hi im testing my opacity</p>
</div>

Link to comment
https://forums.phpfreaks.com/topic/177139-override-opacity/#findComment-934201
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.