jacen6678
09-03-2004, 02:43 PM
I want to use a javascript to change the css display property of div elements from none to inline-block.
I am successfully using the syntax:
document.getElementById( 'id' ).style.display = 'none';
but the following do not work:
document.getElementById( 'id' ).style.display = "inline-block";
document.getElementById( 'id' ).style.display = 'inlineBlock';
document.getElementById( 'id' ).style.display = 'inline-block';
What is the javascript version of the inline-block value for the display property?
I am successfully using the syntax:
document.getElementById( 'id' ).style.display = 'none';
but the following do not work:
document.getElementById( 'id' ).style.display = "inline-block";
document.getElementById( 'id' ).style.display = 'inlineBlock';
document.getElementById( 'id' ).style.display = 'inline-block';
What is the javascript version of the inline-block value for the display property?