neskaya
Follow [ bookmark livejournal facebook twitter rss stumbleupon ]
Log in to download layouts, skins, and emoticons. Register?

Designs

Web Templates
LJ Layouts
phpBB3 Skins

Graphics

Avatars
Textures
Buttons
Emoticons
Pixels
Fonts

Misc & Fun

Quizzes
Tutorials
Interactive

Community

Forums
Rotation

Site

FAQ & Contact
Links

Affiliates

Komet Tails
Smile Scan
Dragonrain

xHTML /HTML Tutorial: Transparent Images [Firefox, Internet Explorer, All]

This tutorial shows you how to filter image opacity in IE and Firefox. Ever had an image that doesn't blend too well with the background, or ever have something else you want to just kinda show under the image? You can filter the opacity of your images to make them look more transparent. I'll show you how to vary the opacity if your images in all browsers.

Here's an example:

Transparent image to transparent image

I didn't change the image, I simply applied some code to it! And this is the code I used:

<img src="image.gif" style="filter:alpha(opacity=50); opacity: 0.5;" alt="" />

Internet explorer reads filter:alpha(opacity=#), # ranging from 0 to 100 and standing for percent opacity. Firefox reads opacity: #, the number ranging from 0 to 1.