Forum Moderators: not2easy

Message Too Old, No Replies

style in a jsp

         

adesign

1:14 pm on Jun 16, 2003 (gmt 0)

10+ Year Member



hy

i've a problem assigning a style to a form:

this is my code:

<td width="250">
<select style="width:250" class="input" disabled id="user" onchange="searchpwd()">
<option selected value="">Select an User</option>
</select>
</td>

i've tried to put my style in the td definition (class="name"),
in the option definition (class="name") but with no result

the stylesheet id correctly appplyed, in the normal html
it works, the problem are the dynamic elements (like this one)
that are loaded by the jsp

please help me

thanks anyway
andrea

grahamstewart

1:18 pm on Jun 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



this bit..

style="width:250" 

..is incorrect - you must specify a measurement unit for CSS sizes - I guess you probably want pixels which is px...

style="width:250px" 

Also I wouldn't recomment naming the class 'input' as this is the name of a tag and it could get a bit confusing.

adesign

1:26 pm on Jun 16, 2003 (gmt 0)

10+ Year Member



ehm

the problem is not that one (that one works)

i've a css with the description for the text in the form
(verdana, 11px, color etc etc)
this style i cannot apply with the code class="name of the parameter in css"

BlobFisk

1:59 pm on Jun 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, adesign!

There are certain compatibility problems with style text in drop-down lists. For example, IE will allow you to change the background colour, but will not apply any font styling - whereas, Mozilla does allow you to style the text.

I wonder if this is the problem here?