vbs/hta columnize checkboxes RRS feed

  • Question

  • I have a script to install tcp printers. There are about 50 checkboxes that make the window really long. see example below but with 50 of these entries. How can split them into columns? Thank you.

    <input type="checkbox" name="CheckBox1" value="ChkBox">
    <font face="serif" size="2">printer1</font><br>
    <input type="checkbox" name="CheckBox2" value="ChkBox">
    <font face="serif" size="2">printer2</font><br>
    <input type="checkbox" name="CheckBox3" value="ChkBox">
    <font face="serif" size="2">printer3</font><br>
    <input type="checkbox" name="CheckBox4" value="ChkBox">
    <font face="serif" size="2">printer4</font><br>
    <input type="checkbox" name="CheckBox5" value="ChkBox">
    <font face="serif" size="2">printer5</font><br>

    Wednesday, September 11, 2019 8:50 PM

All replies

  • put them in a table with multiple columns.


    Wednesday, September 11, 2019 9:11 PM
  • Here is a simple example:

    		<title>Select Printer Form</title>
    		<style type="text/css">
    			table {border-collapse: collapse;}
    			table td {
    				border: 1px solid black;
    				font-weight: bolder;
    			td { width: 150px;}
    	<H3 align="center">Select a printer
    	<table  align="center">
    		<td><input type="checkbox" name="CheckBox1" value="printer1"/>printer1</td>
     		<td><input type="checkbox" name="CheckBox2" value="printer2"/>printer2</td>
    		<td><input type="checkbox" name="CheckBox3" value="printer1"/>printer3</td>
     		<td><input type="checkbox" name="CheckBox4" value="printer2"/>printer4</td>
    		<td><input type="checkbox" name="CheckBox5" value="printer1"/>printer5</td>
     		<td><input type="checkbox" name="CheckBox6" value="printer2"/>printer6</td>
    		<td><input type="checkbox" name="CheckBox7" value="printer1">printer7</td>
     		<td><input type="checkbox" name="CheckBox8" value="printer2">printer8</td>


    Wednesday, September 11, 2019 9:37 PM