From: R. S. F. <sf...@ps...> - 2000-11-17 19:37:45
|
On further investigation.. The problem seems to be isolated to: text-align; Netscape; and the setSize function. If I try to dynamically set the width of an inline DIV that I've set the text-align attribute with CSS, the contents of the DIV disappear. This appears to be a problem only with width and not height. Anyone know a work-around? Thanks. Sean Problem script: ----------------- <html> <head> <title>DynAPI Test menu</title> <script language="Javascript" src="dynapi/js/dynapi.js"></script> <script language="Javascript"> DynAPI.setLibraryPath('dynapi/js/lib/') DynAPI.include('dynapi.api.*') DynAPI.include('dynapi.ext.inline.js') DynAPI.onLoad=function() { DynAPI.document.all["menu"].setBgColor('#cccccc') DynAPI.document.all["menu"].moveTo(100,100) DynAPI.document.all["menu"].setSize(100,200) } </script> <style type="text/css"> #menu { position: absolute; left: 0; top: 0; text-align: right } </style> </head> <body bgcolor="#ffffff"> <div id="menu"> Test Text </div> </body> </html> |