I have this code, that will display the top ten virus threats on my website but it is to wide how do i make the width smaller? thanks to anyone who helps me Here is the code: Here is what the code does: -Zach
I don't think you can, it looks like it autosizes to the text... you can however change the fontsize at the top Code: var font_size = '1' maybe try '-1'
Try setting it to: var font_size = '-2' that seems to be a nice small size. You could fix the table width, but then if you get a longer virus name itd look carp.
The width is defined by the longest piece of text you have as it has no width attribute, in this case the text "Add this info to your web site". As <nobr> tags are used its always going to remaing the width of the longest row, so it will never change except through manipulation of the font size as people have already mentioned.
Remove the date then by setting first_column = 'no' - that would be the smallest possible width. Can't see how you could get the width any narrower.....