|
Post by Psycho on Jul 18, 2008 18:59:55 GMT -5
Is there a way to set a default font in Run BASIC? The program I've written has a few areas where I use some CSS classes inside div statements but beyond that, what controls the font the user sees? When I write the code and test it on my computer the default font appears to be Times New Roman. When viewed on other users' machines, most appear to be courier new I've also had a few people tell me the font changed when I switched from the beta1 server to beta2 (although I'm not exactly certain what change they saw, only that it was enough for them to ask me if I changed it) Is there a simple way for me to get every machine using my program to see it the way I do? John
|
|
|
Post by Jerry Muelver on Jul 18, 2008 21:22:56 GMT -5
At the top of your programs, for the very first line, put this: html "</div>" Then do a call to your setcss sub (with a font setting for a #page ID), and put the whole page inside a DIV with that ID.
|
|
|
Post by Psycho on Jul 20, 2008 16:55:39 GMT -5
Thanks Jerry.
Just to clarify for myself, this will need to be done for each page displayed, correct? I first read your reply and tried to div the entire program only to find it crash at the first cls command or branch label. Unless I did something wrong, I was hoping I could set it one time and forget it unless I wanted to make a temporary change for color, boldness, etc..
John
|
|
|
Post by Jerry Muelver on Jul 20, 2008 20:44:17 GMT -5
Yes, each page needs its own CSS setup. A little boilerplate goes a long way....
|
|
|
Post by Psycho on Jul 20, 2008 21:11:22 GMT -5
roger that
Thanks again for the replies.
|
|