•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 374,178 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,435 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1007 | Replies: 10
![]() |
The same code should work for IE as well.
I tried the following code in IE and it's working fine.
<select size="1" style="width:100px">
<option>1</option>
<option>2</option>
</select>
I tried the following code in IE and it's working fine.
<select size="1" style="width:100px">
<option>1</option>
<option>2</option>
</select>
•
•
Join Date: Jan 2008
Location: Bangalore, India
Posts: 327
Reputation:
Rep Power: 0
Solved Threads: 31
Hi,
its working fine in IE and opera, just check again.
above code will show that red div and combo is of same width, check if they are of same width or not,
may be you are missing some thing.
its working fine in IE and opera, just check again.
<select size="1" style="width:50px"> <option>1</option> <option>2</option> </select> <div style="width:50px;background-color:red"> hi </div>
may be you are missing some thing.
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
~Mitch Ratcliffe
•
•
Join Date: Jan 2008
Posts: 33
Reputation:
Rep Power: 1
Solved Threads: 0
sorry my dear friend...
i am not getting any result in IE
my code is :::
<html:select property="statename" styleClass="LABEL" onchange="getStateDetails();" size="1" style="width:50px">
<html:option value="" key="-----ALL-----"></html:option>
<html:options collection="stateList" labelProperty="name" property="stateId"></html:options>
</html:select>
i have done wht u said...right????
any probs with above code...
NB:::again ...am using IE 6[/b]
thankzzzzzzzz
i am not getting any result in IE
my code is :::
<html:select property="statename" styleClass="LABEL" onchange="getStateDetails();" size="1" style="width:50px">
<html:option value="" key="-----ALL-----"></html:option>
<html:options collection="stateList" labelProperty="name" property="stateId"></html:options>
</html:select>
i have done wht u said...right????
any probs with above code...
NB:::again ...am using IE 6[/b]
thankzzzzzzzz
•
•
Join Date: Jan 2008
Location: Bangalore, India
Posts: 327
Reputation:
Rep Power: 0
Solved Threads: 31
•
•
Join Date: Jan 2008
Location: Bangalore, India
Posts: 327
Reputation:
Rep Power: 0
Solved Threads: 31
Hi,
I am testing in IE 6 and opera.
try to test in other machine and other browser also.
try to test just my code without adding any other tag or code. if you are adding post code here.
I am testing in IE 6 and opera.
try to test in other machine and other browser also.
try to test just my code without adding any other tag or code. if you are adding post code here.
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
~Mitch Ratcliffe
•
•
Join Date: Jan 2008
Posts: 33
Reputation:
Rep Power: 1
Solved Threads: 0
i changed ur code to:::
<select size="1" style="width:50px">
<option>111111111111111111111111</option>
<option>211111111111111111111111111</option>
</select>
<div style="width:50px;background-color:red">
hi
</div>
and checked in IE 6......i can see only 3 o4 4 1's...the remaining portion is trimmed.......
but in fireFox we can see as a whole
<select size="1" style="width:50px">
<option>111111111111111111111111</option>
<option>211111111111111111111111111</option>
</select>
<div style="width:50px;background-color:red">
hi
</div>
and checked in IE 6......i can see only 3 o4 4 1's...the remaining portion is trimmed.......
but in fireFox we can see as a whole
•
•
Join Date: Jan 2008
Location: Bangalore, India
Posts: 327
Reputation:
Rep Power: 0
Solved Threads: 31
yah it means its working now.
thats bcoz you have fixed the width in IE.
coz different browser behaves differently !!!
Have a nice time !!!
•
•
•
•
.i can see only 3 o4 4 1's...the remaining portion is trimmed.......
•
•
•
•
but in fireFox we can see as a whole
coz different browser behaves differently !!!
Have a nice time !!!
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
~Mitch Ratcliffe
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
Similar Threads
- Determining Width of Text in a Control (VB.NET)
- Combo box problem (Java)
- Multiple COmbo Box (JavaScript / DHTML / AJAX)
- dynamic combo load problems (PHP)
- Combo Box (C++)
- Adding Horizondal Scroll bar to Combo Box (Visual Basic 4 / 5 / 6)
- combo box (PHP)
- sorting by a bound column (Visual Basic 4 / 5 / 6)
- Adding controls into a ListView (Visual Basic 4 / 5 / 6)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Help!
- Next Thread: AJAX Update Panel for GridView in ASP.NET2.0


Linear Mode