vanitha Posted January 3, 2012 Share Posted January 3, 2012 Hi, How to create an invisible text in an image. Any idea? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/254268-create-an-invisible-text-in-an-image/ Share on other sites More sharing options...
erdem Posted January 3, 2012 Share Posted January 3, 2012 <div style="display:none">text</div> Quote Link to comment https://forums.phpfreaks.com/topic/254268-create-an-invisible-text-in-an-image/#findComment-1303652 Share on other sites More sharing options...
Jacbey Posted January 3, 2012 Share Posted January 3, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/254268-create-an-invisible-text-in-an-image/#findComment-1303657 Share on other sites More sharing options...
AyKay47 Posted January 3, 2012 Share Posted January 3, 2012 Hi, How to create an invisible text in an image. Any idea? Thanks. why would you want to do that? Quote Link to comment https://forums.phpfreaks.com/topic/254268-create-an-invisible-text-in-an-image/#findComment-1303675 Share on other sites More sharing options...
Jacbey Posted January 3, 2012 Share Posted January 3, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/254268-create-an-invisible-text-in-an-image/#findComment-1303677 Share on other sites More sharing options...
AyKay47 Posted January 3, 2012 Share Posted January 3, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/254268-create-an-invisible-text-in-an-image/#findComment-1303685 Share on other sites More sharing options...
silkfire Posted January 3, 2012 Share Posted January 3, 2012 Maybe he means steganography, it's the art of hiding a hidden image or message within an image. Quote Link to comment https://forums.phpfreaks.com/topic/254268-create-an-invisible-text-in-an-image/#findComment-1303696 Share on other sites More sharing options...
AyKay47 Posted January 3, 2012 Share Posted January 3, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/254268-create-an-invisible-text-in-an-image/#findComment-1303697 Share on other sites More sharing options...
Adam Posted January 3, 2012 Share Posted January 3, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/254268-create-an-invisible-text-in-an-image/#findComment-1303701 Share on other sites More sharing options...
AyKay47 Posted January 3, 2012 Share Posted January 3, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/254268-create-an-invisible-text-in-an-image/#findComment-1303704 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.