html - InnerHTML span style not working as expected -


i have hta linked mainframe emulator , trying display mainframe emulator lines in hta show operator hta doing without having see emulator. have loop captures lines emulator , appends each line variable. @ end of loop, display variable in hta using innerhtml command.

for x = 1 24   host.readscreen celldat,80,x,1   da2 = da2 & key & celldat & "<br>" next  dataarea.innerhtml = "<span style=" & chr(34) & "width: 734px; font-size: 10px; left: 50%; margin-left: -350px; font-family: courier new;" & chr(34) & ">" & da2 & "</span>" 

the code works more or less want.
only first line of dataarea has formatting applying span style.

lines of variable have same font-size , colour, but first line left aligned , all subsequent lines centered seems coming original paragraph formatting position of dataarea.

is there alternate way in display da2 variable in hta formatting of each line consistent?


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -