0

I am using opacity for my table but i dont want to apply that opacity in the div as i mentioned,how to achieve this?

<table  class="popup" style="background-color:#898989;
width:99%;  opacity:0.8;filter:alpha(opacity=80); >
    <tr>
      <td>
         <div>i dont want to apply transparency here</div>
      <td>
    </tr>
</table>

by default its applying transparency throughout a table,which i dont want.

Note:i cant use RGBa as it is not compatible with IE7,8

thanks in advance.

R R
  • 2,999
  • 2
  • 24
  • 42

4 Answers4

1

EDIT:

sorry previous solution was not correct.

you might want to check out these related questions:

I do not want to inherit the child opacity from the parent in CSS

Resetting the opacity of a child element - Maple Browser (Samsung TV App)

this link explains how to use a better fallback for ie6 and 7 , when using rgba

http://css-tricks.com/rgba-browser-support/

Community
  • 1
  • 1
gaurav5430
  • 12,934
  • 6
  • 54
  • 111
0
<div style="opacity: 1;">i dont want to apply transparency here</div>
CRABOLO
  • 8,605
  • 39
  • 41
  • 68
0

you can use rgba value for your background

<table  class="popup" style="background-color: rgba(137,137,137,0.8);
width:99%;  >
    <tr>
      <td>
         <div>i dont want to apply transparency here</div>
      <td>
    </tr>
</table>
kevpoccs
  • 635
  • 5
  • 8
0

Don't apply opacity to parent element use RGB color if you want transparent color or use an image.

Nishant
  • 821
  • 7
  • 17