Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to create a semi transparent Div tag

 
salvin francis
Bartender
Posts: 1280
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was looking at this tutorial :
http://www.w3schools.com/Css/css_image_transparency.asp

and based on that, i wrote this code:


to my suprise, it didnt work in IE7.
It works in FF and chrome though.

I do not want a seperate css class but I need to embed it.
What am i doing wrong here ?
 
salvin francis
Bartender
Posts: 1280
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem resolved,

Stupid IE requires a call to has layout.
http://www.satzansatz.de/cssd/onhavinglayout.html

while there are many methods,
I prefer zoom:1
plain and simple.
 
salvin francis
Bartender
Posts: 1280
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
working code:
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is is possible to create a semi-transparent image?

Thanks,

Justin
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64973
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems like that'd be easy enough to try.
 
salvin francis
Bartender
Posts: 1280
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Justin Fox wrote:Is is possible to create a semi-transparent image?

Thanks,

Justin

Check link in my Original post.
 
ahmer afzal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use PNG semi transparent image and apply iepngfix code for i.e 6

Regards
Ahmer Afzal
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ahmer afzal wrote:use PNG semi transparent image and apply iepngfix code for i.e 6

Regards
Ahmer Afzal


WHY would you want to use an image that requires a HACK and a download when a simple CSS solution exists? Very bad idea.

Eric
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic