I tried text-align:right , I tried "right" I tried changing
Code: Select all
{document.getElementById('custom1').style.display = 'none';}
Code: Select all
{document.getElementById('custom1').style.textAlign= 'right';}
might also be because it is actually the 2nd field defining the width, which had no style so I would think BLOCK would bring it back in place how it needs to be for alignment.... until I set this field to display none it would knock my other custom fields out of alignment.....
ya so you'd have to apply something like this in the java function to all category ids you don't want to display the custom field.
Code: Select all
if (document.getElementById('category').value == '2') {document.getElementById('sntext').style.display = 'none';}
if (document.getElementById('category').value == '2') {document.getElementById('space1').style.display = 'none';}
if (document.getElementById('category').value == '2') {document.getElementById('custom1').style.display = 'none';}