FrOzeN Posted September 22, 2006 Share Posted September 22, 2006 Is there a CSS property to make text invisible or completely transparent?(Note the background I'm using is a fixed image, so making the text the same colour as it is useless.)[code]<html><head> <title>example</title> <style type="text/css"> .example { filter:alpha(opacity=0); -moz-opacity:0; opacity:0; } </style></head><body>This text should be visible.<br /><span class="example">This text should be invisible.</span></body></html>[/code]The above works fine in firefox but not in Internet Explorer. Anyone know what I need to change to get it to work in both?[EDIT] Nvm, I found the display:none and visibility:hidden properties. Quote Link to comment https://forums.phpfreaks.com/topic/21634-transparentinvisible-text-in-ie/ Share on other sites More sharing options...
Daniel0 Posted September 22, 2006 Share Posted September 22, 2006 You could make it not show up:[code]display:none;[/code] Quote Link to comment https://forums.phpfreaks.com/topic/21634-transparentinvisible-text-in-ie/#findComment-96768 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.