Results 1 to 4 of 4

Thread: Sizing an empty list box in ns4.7

  1. #1

    Thread Starter
    Fanatic Member aconybeare's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    772

    Sizing an empty list box in ns4.7

    Does anyone know how to set the size of a list box in netscape 4.7?

    I'm currently using the style property which isn't supported by NS4
    Code:
    <select multiple size="10" name="list2" style="width:150">
    <option value=""></option>
    </select>
    Cheers

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    I'm not too sure if you can, but I just wanted to say that your style is a bit wrong. You must include a unit. It's invalid CSS without, and conforming browsers will ignore it completely:

    Code:
    style="width:150px"

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    That having been said, NS4.7 might support it.... if it still doesn't work, try using CSS or a style class at the top of the HTML doc. I know for a fact NS4.7 supports that.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Fanatic Member aconybeare's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    772
    Rick & techgnome,

    Thanks for your tips, I've put the unit in as advised and added a style, which works with IE5.5, NS6.1, NS6.2, but Not NS4.7.

    TechGnome, you sounded pretty confident that style sheets work with NS4.7. Can you see where I'm going wrong?

    Code:
    <html>
    <head>
    <style>
    	.SizeLstBox{Width:300px; Height:300px}
    </style>
    </head>
    <body>
    <form name="combo_box">
    <table><tr><td>
    <select multiple size="10" name="list2" class="SizeLstBox">
    <option value=""></option>
    </select>
    </td></tr></table>
    </form>
    </body>
    </html>
    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width