Development Code Help

Discussion in 'Software' started by zach1288, 11 Feb 2005.

  1. zach1288

    zach1288 What's a Dremel?

    Joined:
    7 Feb 2005
    Posts:
    54
    Likes Received:
    0
    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 :D

    Here is the code:
    Here is what the code does:
    [​IMG]





    -Zach
     
    Last edited: 11 Feb 2005
  2. Highland3r

    Highland3r Minimodder

    Joined:
    25 Jul 2003
    Posts:
    7,558
    Likes Received:
    16
    Any chance of resizing that pic m8? Its a tad on the large size at 2 megs ;)
     
  3. pat1

    pat1 What's a Dremel?

    Joined:
    13 Jul 2004
    Posts:
    88
    Likes Received:
    0
    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'
     
  4. zach1288

    zach1288 What's a Dremel?

    Joined:
    7 Feb 2005
    Posts:
    54
    Likes Received:
    0
    I will try that thanks! :D
     
  5. Atomic

    Atomic Gerwaff

    Joined:
    6 May 2002
    Posts:
    9,646
    Likes Received:
    94
    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.
     
  6. zach1288

    zach1288 What's a Dremel?

    Joined:
    7 Feb 2005
    Posts:
    54
    Likes Received:
    0
    I tried resizing the font, it does not work :confused:
     
  7. Hepath

    Hepath Minimodder

    Joined:
    20 Oct 2003
    Posts:
    730
    Likes Received:
    0
    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.
     
  8. Atomic

    Atomic Gerwaff

    Joined:
    6 May 2002
    Posts:
    9,646
    Likes Received:
    94
  9. zach1288

    zach1288 What's a Dremel?

    Joined:
    7 Feb 2005
    Posts:
    54
    Likes Received:
    0
    thanks but i need the width alittle smaller :D
     
  10. Hepath

    Hepath Minimodder

    Joined:
    20 Oct 2003
    Posts:
    730
    Likes Received:
    0
    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.....
     

Share This Page