Previous Message
Next Message

Safari and off-left

Sent by Ingo Chao on 5 January 2006 22:10


Christian Heilmann wrote:
> I am getting really annoyed with Safari now, it seems that off-left to
> hide and show elements does not work properly for it.
> 
> I just upgraded puredom explorer to a more modern version:
> 
> http://onlinetools.org/tools/dom-tree-menu-puredom/
> 
> It works wonderful on MSIE6/FireFox/Opera on PC but Safari on Mac will
> just not expand the sections any longer. I show and hide the nested
> lists by applying two classes:
> 
> /* The class to hide nested ULs */
> 	.hide{
> 		position:absolute;
> 		top:0;
> 		left:-4000px;
> 		width:1px;
> 	}
> /* The class to show nested ULs */
> 	.show{
> 		position:static;
> 		top:0;
> 		left:0;
> 		width:auto;
> 	}
> 
> However, it seems not to work in Safari
> 
Hmm, I don't know what's wrong. By giving a background color for both 
the hidden and show states, and with a shorter left of -400px, the show 
state does not move a bit.

I've played with it and ended with this one, without much understanding, 
but Safari works now (with the zipped files), I think.

	.hide{
		position:absolute;
		top:0;
		left:-4000px;
/*		left:-400px; */
/*		background: yellow; */
	}


	.show{
		position:static;
		display: table;
		top:0;
		left:1em;
/*		background: red;*/
	}


regards,

Ingo
-- 
http://www.satzansatz.de/css.html
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: