From: Brandon M. <bnd...@ho...> - 2000-11-17 19:57:41
|
Sure.. remove the text-Align attribute, and surround your text in the layer with a <FONT> tag and have the align attribute on that tag. That might just do it. ----- Original Message ----- From: "R. Sean Fulton" <sf...@ps...> To: <dyn...@li...> Sent: Friday, November 17, 2000 2:37 PM Subject: [Dynapi-Help] Newbie: How to Set Other CSS Properties [Addendum] > > 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> > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help |