Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I see the entire value of a small drop-down list?

Status
Not open for further replies.

JohnnyBGoode

Programmer
May 1, 2002
76
CA
I have a <SELECT> tag as follows:
Code:
<select name="firstName" id="firstName" style="width=50px">
  <option value="0">Alla</option>
  <option value="1">Alabama</option>
  <option value="2">Boris</option>
  <option value="3">Bella-Hermoza-Chicka</option>
</select>
The <SELECT> tag MUST be a small width (to fit on the page) So, the last <option> is getting cut off on my page.

Is there a way to (when I open the drop-down), to have the entire value displayed hovering over all other objects on the page. This way, the <SELECT> object is still a certain size, but when it is opened, you can still read the full value. Is this possible?

Is there a way to use the "alt=blah" attribute (usually used for images)?

Thanx in advance,
JBG
 
No. First of all, your css is wrong, as it should be [tt]style="width: 50px;"[/tt] and not with an equal sign. But as for the size of the dropdown, it is left to the discretion of the browser and will not be changed. Gecko will simply enlarge the dropdown part to fit the contents and IE will trim the contents.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top