How do you set the table width to 100%?
Jun 30, 2020 10:17:16 GMT -5
Post by donnybowers on Jun 30, 2020 10:17:16 GMT -5
I tried the following:
I can't figure out a way to use the Run BASIC table commands to do this. I'm trying to overcome the fact that if I read in a document and print it to the screen, the text doesn't wrap like a normal html page. I should be able to make it wrap if I can put it into a table, but I need to be able to set the width of the table to a percentage of the screen. I'll need to do this if I want to have a sidebar also. I usually split the screen to about 25 percent sidebar and 75 percent for the content. I don't want the user to have to scroll left and right to read the document.
Here's the code I'm trying:
html "<table width='100%'>"
I can't figure out a way to use the Run BASIC table commands to do this. I'm trying to overcome the fact that if I read in a document and print it to the screen, the text doesn't wrap like a normal html page. I should be able to make it wrap if I can put it into a table, but I need to be able to set the width of the table to a percentage of the screen. I'll need to do this if I want to have a sidebar also. I usually split the screen to about 25 percent sidebar and 75 percent for the content. I don't want the user to have to scroll left and right to read the document.
Here's the code I'm trying:
cssid #body, "{ font-family: Arial, Helvetica, sans-serif ; font-size: 24pt; background: #000; color:#fff; width: 100%; padding: 16px }"
div body
html "<table width='100%'><tr><td>"
open "projects\Bible_project\ylt\John1円.txt" for input as #1
while eof(#1)=0
line input #1, r$
print r$;
html "<br>"
wend
close #1
html "</td></tr></table>"
end div