View Full Version : invisible text

Jan 24th, 2009, 10:49 PM
This is cut out from complictaed HTML
I see a white stripe, but no 'aaa' text
with no 'background:white' I see nothing

if I inspect the thing with firebug , the 'aaa' part is grayed

what could be the cause ?

<div style = 'z-index:100000000;position:absolute;top:0px;left:100px;width:100px;height:20px;background:white;color: black;'>

Jan 25th, 2009, 02:00 AM
lots of things like what doc type are you using but the first thing that stands out to me is the fact that you declaire your styles around single quotes.

Change this:

<div style=''></div>
to this:

<div style=" "></div>

Jan 25th, 2009, 07:06 AM
"-//W3C//DTD XHTML 1.0 Transitional//EN"

changing ' to "" does not make any difference.

Major Payne
Jan 25th, 2009, 07:31 AM
Quotes don't matter except in certain circumstances. Not a factor in your question here. Had no problem seeing text (aaaa) in either Firefox or IE. Some browsers may have a problem with the z-index. You didn't specify which you were using along with whether you had rest of page properly coded. Having a value that large isn't necessary anyway.

Jan 25th, 2009, 11:32 AM
what could be the cause ?
We can't comment by seeing the above posted code. There might be other elements on top of this element. Could your post a link?