By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,256 Members | 1,700 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,256 IT Pros & Developers. It's quick & easy.

Select Box in IE

P: 8
Need a select box that has long text to be rendered the same in IE as it does in FF.

Firefox Version of Select

IE Version of Select Box

The width property is set to 200px and this can not be changed just for IE. Need the IE to look EXACTLY like the FF. Have heard that javascript can do this, have tried almost everything with CSS.
Nov 6 '07 #1
Share this Question
Share on Google+
9 Replies


acoder
Expert Mod 15k+
P: 16,027
Can you post your code?
Nov 7 '07 #2

P: 8
Can you post your code?
[HTML]<select name="request[{$smarty.section.requests_loop.index}][software_title]" id="software_title{$smarty.section.requests_loop.i ndex}" style="width: 200px">[/HTML]
Nov 9 '07 #3

acoder
Expert Mod 15k+
P: 16,027
Is it OK if the width changes when clicking the select box?
Nov 9 '07 #4

P: 9
I think it is impossible.
Nov 9 '07 #5

acoder
Expert Mod 15k+
P: 16,027
No, he wants it the other way round. Firefox is fine, IE should appear like Firefox.
Nov 9 '07 #6

P: 82
I can give you one piece of advice.
You should place one empty option tag in your 'select'. In this option you may add about 20-25 &nbsp symbols and then disable it :
[HTML]<option disabled="true">[/HTML]
Nov 9 '07 #7

P: 8
Is it OK if the width changes when clicking the select box?
The width can not change as when it does, it disturbs the form. Have already tried that. Just want IE to look like FF and without a ton of JS.
Nov 12 '07 #8

acoder
Expert Mod 15k+
P: 16,027
The width can not change as when it does, it disturbs the form. Have already tried that. Just want IE to look like FF and without a ton of JS.
Setting the OPTION element width only doesn't seem to work in IE, so I guess this is not possible.
Nov 12 '07 #9

drhowarddrfine
Expert 5K+
P: 7,435
Which doctype are you using?

EDIT: Never mind. I can verify 'width' does not work for <select> in IE.
Nov 12 '07 #10

Post your reply

Sign in to post your reply or Sign up for a free account.