3 <title>Align in button Test
</title>
4 <style type=
"text/css">
5 button
{ width: 300px; }
9 <p>The following button elements should all be rendered on the left, with their text center justified.
</p>
10 <button align=
"right">This is should be center justified.
</button>
12 <button align=
"left">This is should be center justified.
</button>
14 <button>This is should be center justified.
</button>
17 <button id=
"test1">This is should be center justified.
</button>
20 var obj1
= document
.getElementById('test1');
21 obj1
.setAttribute('align', 'right');
25 <div id='insertionpoint'
></div>
28 var ins
= document
.getElementById('insertionpoint');
29 var obj2
= document
.createElement('BUTTON');
30 obj2
.setAttribute('align', 'right');
31 obj2
.appendChild(document
.createTextNode('This is should be center justified.'));
32 ins
.appendChild(obj2
);