aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes how to create a semi transparent Div tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to create a semi transparent Div tag" Watch "how to create a semi transparent Div tag" New topic
Author

how to create a semi transparent Div tag

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

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 ?


My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

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
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

working code:
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
Is is possible to create a semi-transparent image?

Thanks,

Justin


You down with OOP? Yeah you know me!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

Seems like that'd be easy enough to try.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

Justin Fox wrote:Is is possible to create a semi-transparent image?

Thanks,

Justin

Check link in my Original post.
ahmer afzal
Greenhorn

Joined: Oct 12, 2009
Posts: 3
use PNG semi transparent image and apply iepngfix code for i.e 6

Regards
Ahmer Afzal
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to create a semi transparent Div tag