Does anyone know if an option inside a select box keeps track of its clientWidth or offsetWidth?
See my getLongestOptionWidth function in the code I included above for what I am trying to do...
A select element has a clientWidth that it keeps track of I believe, wondering if option elements...
Heh, i didnt read the small text. I thought it was a signature.. I'm leaning towards doing that solution, just making it initially wide enough to hold the widest option.. but I'll have to change it every time a new option gets added to the program that is longer still.
Just wondering if its...
Yeah, I understand that. In the project i'm working on, I am defining a fixed width through css.... The reason I need to do this is initially, the select box is empty and if I dont define a fixed width it the select box is extremely narrow and this doesnt look very user appealing.
I need a...
I posted a similar question about this in the CSS forum because I was trying to find a css workaround for IE not supporting min-width but it looks like i'm going to have to use Javascript to do this.
I want to be able to dynamically resize the width of a select box. The select box has options...
Cool solution, but i'm not sure if i'm going to be able to get it to work for what I need or not...
I need my selectBox to behave the same as the min-width works for Firefox and other browsers that it works for...
If I set the min-width to 250px, in Firefox, the select box loads empty, but is...
Hi,
I'm fairly new to html/css but have a basic understanding of it and how it works...
I have a html select with a list of options, and I was using the CSS property min-width to give the select a minimum width of 250 pixels... I want the select box to grow if I add options to it that are >...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.