Jago6060 Posted June 13, 2007 Share Posted June 13, 2007 I've defined a div that is supposed to just display a background image. the image is a gif file that I've made transparent with Photoshop. heres the code... #trans { background-image:url(rotarytrans3.gif); background-attachment: fixed; background-position: center center; background-repeat: no-repeat; height: 300px; width: 300px; float: right; } am I missing something? Link to comment https://forums.phpfreaks.com/topic/55367-trouble-showing-a-background-image/ Share on other sites More sharing options...
ToonMariner Posted June 13, 2007 Share Posted June 13, 2007 gifs only have 100% transparency or 0. if you need an image thats slighty opaque then use a png - you will need the png fix for it to work in ie6 http://www.twinhelix.com/css/iepngfix/ Link to comment https://forums.phpfreaks.com/topic/55367-trouble-showing-a-background-image/#findComment-273808 Share on other sites More sharing options...
dbrimlow Posted June 26, 2007 Share Posted June 26, 2007 #trans { background-image:transparent url(rotarytrans3.gif) center no-repeat; height: 300px; width: 300px; float: right; } Link to comment https://forums.phpfreaks.com/topic/55367-trouble-showing-a-background-image/#findComment-282662 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.