OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <title>Align in select test</title> | |
4 <style type="text/css"> | |
5 select { width: 300px; } | |
6 </style> | |
7 </head> | |
8 <body> | |
9 <p>The following select elements should all be rendered on the left, with th
eir text left justified.</p> | |
10 <select align="right"><option>This is should be left justified.</option></se
lect> | |
11 <br> | |
12 <select align="left"><option>This is should be left justified.</select> | |
13 <br> | |
14 <select align="center"><option>This is should be left justified.</option></s
elect> | |
15 <br> | |
16 <select><option>This is should be left justified.</option></select> | |
17 <br> | |
18 | |
19 <select id="test1"><option>This is should be left justified.</option></selec
t> | |
20 <script> | |
21 <!-- | |
22 var obj1 = document.getElementById('test1'); | |
23 obj1.setAttribute('align', 'right'); | |
24 --> | |
25 </script> | |
26 | |
27 <div id='insertionpoint'></div> | |
28 <script> | |
29 <!-- | |
30 var ins = document.getElementById('insertionpoint'); | |
31 var obj2 = document.createElement('SELECT'); | |
32 obj2.setAttribute('align', 'right'); | |
33 var option = document.createElement('OPTION'); | |
34 option.appendChild(document.createTextNode('This is should be left justi
fied.')); | |
35 obj2.appendChild(option); | |
36 ins.appendChild(obj2); | |
37 //--> | |
38 </script> | |
39 </body> | |
40 </html> | |
OLD | NEW |