Posted by: sreddy2u | January 31, 2008

CSS display style Problem with Mozilla

//
//js code.
//

labelSpan = document.createElement(‘span’);
try{
// labelSpan .style.display = ‘-moz-inline-block’;//firefox
labelSpan .style.display = ‘-moz-inline-box’;//firefox
}
catch(ex){
//IE.. will use width only
}
labelSpan .style.width = ‘100px’;

labelText = document.createTextNode(‘Test’);
labelSpan .appendChild(labelText);

divObj.appendChild(labelSpan );

solution is :  used  “-moz-inline-box”  instead of “-moz-inline-block”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: