954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

width of a combo

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

ajithraj
Junior Poster in Training
71 posts since Jan 2008
Reputation Points: 10
Solved Threads: 1
 

The same code should work for IE as well.
I tried the following code in IE and it's working fine.
12

nagoon97
Newbie Poster
8 posts since Mar 2008
Reputation Points: 13
Solved Threads: 2
 

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?????

ajithraj
Junior Poster in Training
71 posts since Jan 2008
Reputation Points: 10
Solved Threads: 1
 

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.

DangerDev
Posting Pro in Training
485 posts since Jan 2008
Reputation Points: 165
Solved Threads: 59
 

sorry my dear friend...
i am not getting any result in IE

my code is :::

i have done wht u said...right????
any probs with above code...

NB:::again ...am using IE 6[/B]

thankzzzzzzzz

ajithraj
Junior Poster in Training
71 posts since Jan 2008
Reputation Points: 10
Solved Threads: 1
 

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.

DangerDev
Posting Pro in Training
485 posts since Jan 2008
Reputation Points: 165
Solved Threads: 59
 

still not working.......

where r u testing in ..
which version are u using with...
?????

ajithraj
Junior Poster in Training
71 posts since Jan 2008
Reputation Points: 10
Solved Threads: 1
 

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.

DangerDev
Posting Pro in Training
485 posts since Jan 2008
Reputation Points: 165
Solved Threads: 59
 

i changed ur code to:::

111111111111111111111111211111111111111111111111111
hi


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

ajithraj
Junior Poster in Training
71 posts since Jan 2008
Reputation Points: 10
Solved Threads: 1
 

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 !!!

DangerDev
Posting Pro in Training
485 posts since Jan 2008
Reputation Points: 165
Solved Threads: 59
 

u r great....!!!!!!!!!!!

ajithraj
Junior Poster in Training
71 posts since Jan 2008
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You