Log in

View Full Version : Can CSS do this with images?



lord_havoc
04-14-2007, 04:04 AM
Can CSS force the little http://www.cyanideperfection.net/error.PNG image to not show up?

Please help me if possible.

P.S. If this is possible with another programming language refer me to it.

jscheuer1
04-14-2007, 04:10 AM
That is a preference set in the browser. You can avoid it by not having any missing images. Missing image icons can occur for various reasons, sometimes even when the image s present. When this happens, depending upon the reason, there is often a way to prevent it. If this is what is happening to you, to know what to tell you to do, I would need to know the reason:

Please post a link to your problem page.

lord_havoc
04-14-2007, 04:19 AM
well I am trying to make my site skinnable, and my navigation bar is made from an image map. So if I skin it, it will read another style sheet, changing the color scheme, but not the navigation bar colors. So I thought what if I make the image my background image for that div, leave the image map intact but take out the url of the picture leaving it blank since the hotspots of the image map will be the same on all images. To see what I mean go to http://cyanideperfection.net.

I also tried making the image used for the map a 2x2 pixel image that wouldn't be noticed b/c it blended in with the background. However it stretched it out to fit the map. If you know a way around that problem, that would be the optimal way to go. Again, to see my problem go to http://cyanideperfection.net

jscheuer1
04-14-2007, 05:13 AM
Use a 2x2 transparent .png or .gif.

lord_havoc
04-14-2007, 05:24 AM
I thought of it, but I don't know how to make it transparent. Do you mean transparent as in styling it in my style sheet or can you literally create a transparent image?

Twey
04-14-2007, 10:54 AM
No, create a real transparent image. If you don't know how to, you can use my one (http://www.twey.co.uk/images/invisible.gif) (right-click and save as).

Twey
04-14-2007, 12:45 PM
There's really no call to use an image map here, though. If I were you, I'd use a separate image for each link. Also, your page is invalid (http://validator.w3.org/check?uri=http%3a%2f%2fcyanideperfection%2enet%2f) and uses a Transitional DOCTYPE.