In VB 6, I always set my listbox to Courier new, that way the columns would all line up.
In ASP .Net, it looks to me like I can only choose smaller, x-large, etc... When I put data in the listbox with the same number of characters, the columns do not line up because differant letters take up more room than other letters.
Anyone have any ideas?
ThanksTry using Cascading Style Sheets
I got it...
ListFuel.Font.Name = "Courier"
Guess I should try more things out before I post questions here. Oh well, maybe this will help some other .Net Newbies...
That's one way of doing it, but not very maintainable. I suggested Stylesheets because in the future, if you are asked to change the fonts for the site, you have to change only one place.
Well, I'm a newbie and I don't know much about style sheets.
I doubt I will have to change it in the future. The main thing is that it fits on the page, it is lined up for easy reading, and the data is right.
This web page will mainly be used by only the employers and employees in the company I work for.
Thanks for the advise though. I will have to check out style sheets and other aspects of ASP as I go along.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment