Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to hide the IMG ? 1

Status
Not open for further replies.

thelordoftherings

Programmer
May 16, 2004
616
IL
Hello,

I use this code:
<IMG SRC="The problem is that when I do this the page is being added by a white square. I would like that this IMG will not be seen by the user.
How do I do that?
 
Why are you putting an image on your website if you do not want users to see it? That's a waste of bandwidth. Anyway, if you really want to do it, you can with css:
Code:
<img src="[URL unfurl="true"]http://someURL.cgi"[/URL] alt="" style="visibility: hidden;" /> (picture will not be seen, but will take up the space it needs)

<img src="[URL unfurl="true"]http://someURL.cgi"[/URL] alt="" style="display: none;" /> (picture will not be seen and won't take up any space)
 
IF a small white dot wouldn't bother your site, you could do this:

<IMG SRC=" width="1" height="1" border="0">

There's always a better way. The fun is trying to find it!
 
Vragabond,

I need the bandwidth since this IMG is calling cgi file.
Anyway, thanx alot this is exactly what I needed!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top