setting select width problem

Hi,

I am creating Html element select and setting its width

But

For Mozila

var newlistOperation = document.createElement("select");

newlistOperation.setAttribute("style", "width:191px");

works.

For IE

var newlistOperation = document.createElement("select");

newlistOperation.setAttribute("width", "191px");

works

I do not want to check browser type and then set width accordingly.

How can I set width of select element so that it works for both IE as well as Mozila

Thanks

waiting for your response.

[593 byte] By [Rojara] at [2007-11-26 16:13:18]
# 1
Why in a.... did you choose a Java forum to post Html/Javascript questions...?MeTitus
Me_Titusa at 2007-7-8 22:36:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...