Jump to content

Recommended Posts

What do you mean by "Invisible text on an image"?

 

Do you mean by putting text over an image on the webpage? If you do mean that then do this:

 


<div class="image">
<img src="images/image" width="800" height="220">
<div class="text">
Text over image goes here
</div>
</div>

 

then you need to put some css in.

 


.image {
	position:relative;
	float:left;
	font-family:Lucinda Grande;
	font-weight: bold;
	color: #CF66AC;

}
.image .text {
	position:absolute;
	top:46px; /* in conjunction with left property, decides the text position */
	left:635px;
	width:300px; /* optional, though better to have one */
}

 

Hope that helps. :)

Hi,

 

How to create an invisible text in an image. Any idea?

 

Thanks.

why would you want to do that?

 

He might want to do this to hide text on an image and then he might want a javascript button that someone clicks to change display:none; to display:block; to reveal it. Like if it was an image of a cow he might want the hidden block to say Moooo... and then the button would say "Make the cow moo" and then it would reveal the block of text and it'd make the cow moo. :)

Hi,

 

How to create an invisible text in an image. Any idea?

 

Thanks.

why would you want to do that?

 

He might want to do this to hide text on an image and then he might want a javascript button that someone clicks to change display:none; to display:block; to reveal it. Like if it was an image of a cow he might want the hidden block to say Moooo... and then the button would say "Make the cow moo" and then it would reveal the block of text and it'd make the cow moo. :)

that's an imaginative story.

Maybe he means steganography, it's the art of hiding a hidden image or message within an image.

or maybe we should let the OP answer my question first.

 

Why? Silkfire made a good suggestion.

was more of a statement, hadn't heard of steganography before, looks interesting, all I am saying is I want to know the real reason for this before we go any further, then everyone jumped on the guessing game.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.