User Name Password Register
DaniWeb IT Discussion Community
All
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 391,817 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,605 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: 1082 | Replies: 10
Reply
Join Date: Jan 2008
Posts: 36
Reputation: ajithraj is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
ajithraj ajithraj is offline Offline
Light Poster

width of a combo

  #1  
Mar 8th, 2008
pls help me to set the width of a combo in IE.....is there any way to fixe the width in IE....


In mozilla ,i fixed it using style="width:100px";

thankzzzzzzz
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2008
Posts: 8
Reputation: nagoon97 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 2
nagoon97's Avatar
nagoon97 nagoon97 is offline Offline
Newbie Poster

Re: width of a combo

  #2  
Mar 12th, 2008
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>
Reply With Quote  
Join Date: Jan 2008
Posts: 36
Reputation: ajithraj is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
ajithraj ajithraj is offline Offline
Light Poster

Re: width of a combo

  #3  
Mar 13th, 2008
wht version IE u r using with...
am using IE 6..........
its not working in IE 6 ..thts quiet sure

thankzzzzzz..

is there any other way?????
Reply With Quote  
Join Date: Jan 2008
Location: Bangalore, India
Posts: 327
Reputation: DangerDev is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 31
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Whiz

Re: width of a combo

  #4  
Mar 13th, 2008
Hi,
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>
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.
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
Reply With Quote  
Join Date: Jan 2008
Posts: 36
Reputation: ajithraj is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
ajithraj ajithraj is offline Offline
Light Poster

Re: width of a combo

  #5  
Mar 13th, 2008
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
Reply With Quote  
Join Date: Jan 2008
Location: Bangalore, India
Posts: 327
Reputation: DangerDev is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 31
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Whiz

Re: width of a combo

  #6  
Mar 13th, 2008
hi
paste my code as it is in to a blank .html file and run it in IE see the result, if its working means there is a problem in your code.
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
Reply With Quote  
Join Date: Jan 2008
Posts: 36
Reputation: ajithraj is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
ajithraj ajithraj is offline Offline
Light Poster

Re: width of a combo

  #7  
Mar 13th, 2008
still not working.......

where r u testing in ..
which version are u using with...
?????
Reply With Quote  
Join Date: Jan 2008
Location: Bangalore, India
Posts: 327
Reputation: DangerDev is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 31
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Whiz

Re: width of a combo

  #8  
Mar 13th, 2008
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.
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
Reply With Quote  
Join Date: Jan 2008
Posts: 36
Reputation: ajithraj is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
ajithraj ajithraj is offline Offline
Light Poster

Re: width of a combo

  #9  
Mar 13th, 2008
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
Reply With Quote  
Join Date: Jan 2008
Location: Bangalore, India
Posts: 327
Reputation: DangerDev is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 31
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Whiz

Re: width of a combo

  #10  
Mar 13th, 2008
yah it means its working now.

.i can see only 3 o4 4 1's...the remaining portion is trimmed.......
thats bcoz you have fixed the width in IE.

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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 5:42 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC