Jump to content
vtsokalo

Opacity de uma div

Recommended Posts

vtsokalo

Boas, tenho a seguinte div:

<div id="my_popup" background="popupbg.png" style="display:none;border:0px dotted gray;padding:.3em;background-color:white;position:absolute;width:600px;height:600x\px;left:380px;top:100px;z-index:+1;">
   <div align="right">
       <a href="javascript:hide_popup('my_popup')">close</a>
   </div>

a div funciona como uma janela popup, gostava que o background dessa janela, fosse um pouco transparente, mas o conteudo nela contida nao tivesse transparencia. A janela irá conter a form de login do site.

Cumps.

Edited by yoda

Share this post


Link to post
Share on other sites
I-NOZex

tens3 formas: usas uma imagem png semi-transparente, usas um fundo rgba (0..255,0..255,0..255,0..1) ou entao usas algo assim:

<div class="popup">
  <div class="content">
  <!-- CONTEUDO -->
  </div>
  <div class="popup_bg"></div>
</div>

e crias a div popup_bg de forma a ocupar o tamanho da div mae (popup) e alteras o opacity dela...


B2R » Beat2Revolution v3.0b | Regista e divulga-nos

beat2revolution.net

Share this post


Link to post
Share on other sites
vtsokalo

O meu problema, é que o formulario agora fica assim:

http://vk.com/doc49466165_224152710

Queria que as textbox ficassem brancas, e nao "transparentes"

Já consegui com <td style="font-family:Verdana, Geneva, sans-serif; font-size:12; color:#006; background-color:white;"

Bgd.

Edited by vtsokalo

Share this post


Link to post
Share on other sites
I-NOZex

O meu problema, é que o formulario agora fica assim:

http://vk.com/doc49466165_224152710

Queria que as textbox ficassem brancas, e nao "transparentes"

Já consegui com <td style="font-family:Verdana, Geneva, sans-serif; font-size:12; color:#006; background-color:white;"

Bgd.

nao consigo ver isso ta em oculto

usa o jsfiddle ou semelhante...


B2R » Beat2Revolution v3.0b | Regista e divulga-nos

beat2revolution.net

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. 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.